GetInfo

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > Altri servizi > FTP >

GetInfo

Service

FTP

 

Method

GetInfo

 

Description

Retrieves a DataSet containing information about the specified remote file or directory.

 

Input

Name

Description

Type

Optional

remotePath

The path of the remote file or directory.

String

 

failIfNotFound

Specifies whether to throw an exception if file not found.

Bool

 

Output

Name

Description

Type

Optional

returnValue

Information about the remote file or directory; null if no file is found and failIfNotFound argument is set to false.

 

Download Data Structure.

Dataset

 

 

Remarks

The returned dataset contains the following fields:

“CreationTime” (DateTime) -> the creation time of the item (if not null)

“IsDirectory” (Boolean) -> true if the item is a directory, otherwise false

“IsFile” (Boolean) -> true if the item is a file, otherwise false

“IsLink” (Boolean) -> true if the item is a link, otherwise false

“LastAccessTime” (DateTime) -> the last access time of the item (if not null)

“LastWriteTime” (DateTime) -> the last modification time of the item (if not null)

“Length” (Int64) -> the file length

“Name” (String) -> the name of the file or directory

“Path” (String) -> the relative path of the file or directory