Innov-AI     Services     Supporters     Contact     About    
FTPS

All remote protocols.

ftps connectftps parse pbszftps exec protftps activeftps passiveftps set typeftps cdftps pwdftps mkdirftps lsftps ls dirsftps renameftps putftps getftps rmftps rm dirftps disconnectftps disconnect all

ftps connect <sessionId> <jsonObject>


Description

    Connect to a FTPS server. (Use "anonymous/ftp4j" for an anonymous connection)

Parameters

    sessionId:   The session id - string - required
    jsonObject:   The json object information - string - required
admin
ftps connect "session1" {cm get "demo_cm_ftps";};
mentdb
1

ftps parse pbsz <sessionId> <pbsz>


Description

    Define the protection buffer size.

Parameters

    sessionId:   The session id - string - required
    pbsz:   The pbsz size - number - required
admin
ftps parse pbsz "session1" 0;
mentdb
1

ftps exec prot <sessionId> <prot>


Description

    Define the protection protocol.

Parameters

    sessionId:   The session id - string - required
    prot:   The protocol ('C' | 'S' | 'E' | 'P') - string - required
admin
ftps exec prot "session1" P;
mentdb
1

ftps active <sessionId>


Description

    Set the active mode.

Parameters

    sessionId:   The session id - string - required
admin
ftps active "session1";
mentdb
1

ftps passive <sessionId>


Description

    Set the passive mode.

Parameters

    sessionId:   The session id - string - required
admin
ftps passive "session1";
mentdb
1

ftps set type <sessionId> <transferType>


Description

    Set the transfer type. (BINARY | LOCAL | ASCII | EBCDIC)

Parameters

    sessionId:   The session id - string - required
    transferType:   The transfer type (BINARY | LOCAL | ASCII | EBCDIC) - string - required
admin
ftps set type "session1" "BINARY";
mentdb
1

ftps cd <sessionId> <directory>


Description

    Go to another remote directory.

Parameters

    sessionId:   The session id - string - required
    directory:   The remote directory - string - required
admin
ftps cd "session1" "/remote/dir";
mentdb
1

ftps pwd <sessionId>


Description

    Get the current remote directory.

Parameters

    sessionId:   The session id - string - required
admin
ftps pwd "session1";
mentdb
/remote/dir

ftps mkdir <sessionId> <directory>


Description

    Create a remote directory.

Parameters

    sessionId:   The session id - string - required
    directory:   The remote directory - string - required
admin
ftps mkdir "session1" "/remote/dir";
mentdb
1

ftps ls <sessionId> <regexFilter>


Description

    Get all files from the current remote directory.

Parameters

    sessionId:   The session id - string - required
    regexFilter:   The regex filter - string - not required
admin
ftps ls "session1" ".*.*"
mentdb
[]

ftps ls dirs <sessionId>


Description

    Get all directories from the current remote directory.

Parameters

    sessionId:   The session id - string - required
admin
ftps ls dirs "session1"
mentdb
[]

ftps rename <sessionId> <oldFile> <newFile>


Description

    Rename a remote file or directory.

Parameters

    sessionId:   The session id - string - required
    oldFile:   The old file path - string - required
    newFile:   The new file path - string - required
admin
ftps rename "session1" "file1" "file2";
mentdb
1

ftps put <sessionId> <localFile> <remoteFile> <mode>


Description

    Upload a file.

Parameters

    sessionId:   The session id - string - required
    localFile:   The local file path - string - required
    remoteFile:   The remote file path - string - required
    mode:   The mode (APPEND | RESUME) - string - required
admin
ftps put "session1" "file1" "file2" "RESUME";
mentdb
1

ftps get <sessionId> <remoteFile> <localFile>


Description

    Download a file.

Parameters

    sessionId:   The session id - string - required
    remoteFile:   The remote file path - string - required
    localFile:   The local file path - string - required
admin
ftps get "session1" "remoteFile1" "localFile2";
mentdb
1

ftps rm <sessionId> <remoteFile>


Description

    Remove a remote file.

Parameters

    sessionId:   The session id - string - required
    remoteFile:   The remote file path - string - required
admin
ftps rm "session1" "remoteFile1";
mentdb
1

ftps rm dir <sessionId> <remoteDir>


Description

    Remove a remote directory.

Parameters

    sessionId:   The session id - string - required
    remoteDir:   The remote directory path - string - required
admin
ftps rm dir "session1" "remoteDir1";
mentdb
1

ftps disconnect <sessionId>


Description

    Disconnect a session.

Parameters

    sessionId:   The session id - string - required
admin
ftps disconnect "session1";
mentdb
1

ftps disconnect all


Description

    Disconnect all sessions.

admin
ftps disconnect all;
mentdb
0




© 2012 - 2023