FileExists

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > Altri servizi > FTP >

FileExists

Service

FTP

 

Method

FileExists

 

Description

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

 

Input

Name

Description

Type

Optional

remotePath

The path of the remote file to check.

String

Y

Output

Name

Description

Type

Optional

returnValue

True if the file exists, false otherwise.

Bool

 

 

Remarks

The standard FTP protocol does not have a dedicated command that could be used to detect whether a file exists.

There is the MLST command that is quite reliable, but not all servers support it, so SIZE or even PWD, CWD commands are used for these servers.