This page is being updated.
Please check back soon...

Close

Functions

class Response{
    Boolean success;
    Double cost;
    Double dataSize;
    String error;
}
 
class Find extends Response{
    List<FTP.File> items;
    String errorMessage;
}
 
class File {
    String filename;
    String longname;
    String uri;
    FileAttributes attrs;
}
 
class FileAttributes {
    Integer flags;
    Integer size;
    Integer uid;
    Integer gid;
    Integer permissions;
    Integer atime;
    Interger mtime;
    Object extended;
    String permissionString;
    String atimeString;
    String mtimeString;
    Boolean reg;
    Boolean chr;
    Boolean blk;
    Boolean fifo;
    Boolean link;
    Boolean sock;
    Boolean dir;
}
 
class Put extends Response{
    FTP.File file;
}
 
class Append extends Response{
    FTP.File file;
}
 

 
    FTP2SF.FTP.Find findResult = FTP2SF.FTP.find('site','folderPath');
 
    Blob blobResult = FTP2SF.FTP.get('site','filePath');
 
    FTP2SF.FTP.Put putResult = FTP2SF.FTP.put('site', 'filePath', Blob.valueOf('Sample string'));
 
    FTP2SF.FTP.Response renameResult = FTP2SF.FTP.ren('site', 'oldPath', 'newPath');
 
    FTP2SF.FTP.Response deleteResult = FTP2SF.FTP.del('site', 'filePath');
 
    FTP2SF.FTP.Response trnResult = FTP2SF.FTP.trn('fromSite', 'fromFilePath', 'toSite', 'toFilePath');
 
    FTP2SF.FTP.Response createDirResult = FTP2SF.FTP.mkdir('site', 'filePath');
 
    FTP2SF.FTP.Response removeDirResult = FTP2SF.FTP.rmdir('site' ,'filePath');
 
    FTP2SF.FTP.Response existResult = FTP2SF.FTP.exists('site' ,'filePath');
 
    FTP2SF.FTP.Append appendResult = FTP2SF.FTP.Append('site', 'filePath', Blob.valueOf('Sample string'));
 
    FTP2SF.FTP.Response pingResult = FTP2SF.FTP.ping( 'site', 30);
 
    FTP2SF.FTP.Rtr('site', 'filePath', 'requestId', 'terminator', 3);
 
footer-logo

If you want high performance, high availability, low operational costs we are here to help.