DirectoryExists

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > Altri servizi > FTP >

DirectoryExists

Service

FTP

 

Method

DirectoryExists

 

Description

Detects whether the specified directory exists on the server. Not all FTP servers support this.

 

Input

Name

Description

Type

Optional

remotePath

Remote directory pathname.

String

 

Output

Name

Description

Type

Optional

returnValue

True if the directory exists, false otherwise.

Bool

 

 

Remarks

The standard FTP protocol does not have a dedicated command that could be used to detect whether a directory exists. There is the MLST command that is quite reliable, but not all servers support it, so MDTM, SIZE or even PWD, CWD commands are used for these servers.