GetFileInfo

Returns the filesystem information of one or several file(s)/folder(s).
Note: requesting the fileinfo of the fileserver (Path=/) will result in returned status code 4029.

When requesting info on several paths no exceptions are thrown when a path fails. Only the successful requests will be returned.

Authentication Methods


  • With a username and password
Input Parameter Type Description
Token String Security token
FileServerName String FileServer name
Path String File or Folder to get the info from
Paths Array Files or Folders to get the info from
Output Parameter Type Description
Path Path Path object containing the info about the passed file(s) or foldername(s)

EXAMPLES

With Single Path

curl 'https://storage.example.com/storage/api.php?Token=rrc1d3ntb53tt6b2vhail6rdtrsxov3v&Task=GetFileInfo&FileserverName=nmsa000001&Path=file.txt'

With Multile Paths

curl -g 'https://storage.example.com/storage/api.php?Token=rrc1d3ntb53tt6b2vhail6rdtrsxov3v&Task=GetFileInfo&FileserverName=nmsa000001&Paths[]=%2Ffile.txt&Paths[]=%2Ffolder%2Ffile.txt'

RESPONSE

<Response>
    <Status>1</Status>
    <Message></Message>
    <FileInfos>
        <FileInfo>
            <Name>file.txt</Name>
            <Path>/</Path>
            <IsFolder>false</IsFolder>
            <LastModifiedDstamp>1248039584</LastModifiedDstamp>
        </FileInfo>
    </FileInfos>
</Response>