SFTP File Context
Remote file handle
- Context Variable: file
- Only applicable to SFTP input services
API
//Delete this file
boolean delete();
//Get's the remote file name
String getFileName();
//Get's the remote file's full path
String getFilePath();
//Get's the home directory of the remote login
String getHomeDir();
//Get's the current working directory of the remote login
String getWorkingDir();
//Move this file to a different folder with same name
boolean moveTo(String path);
//Move this file to a different folder with different name
boolean moveTo(String path, String fileName);
//Retrieves the file content from the remote file
byte[] getData();
//Copy this file to a different folder with different name
boolean copyTo(String path, String fileName);
//Copy this file to a different folder with same name
boolean copyTo(String path);
Updated over 3 years ago