procedure RetrieveAttributes(Attrs: TScSFTPFileAttributes; const Path: string; SymbolicLinks: boolean = False; const Flags: TScSFTPAttributes = []);



Call the RetrieveAttributes method to retrieve the attributes for a named file.

If NonBlocking is False, then RetrieveAttributes returns control after receiving attributes from the server and writing them to the Attrs object. Otherwise the attributes are set to Attrs on executing the OnFileAttributes event. If the server returns an error, the OnError event is generated.



Attrs - an object to which the attributes of the requested file will be written.
Path - specifies the file system object for which attributes should be returned.
SymbolicLinks - specifies if the server follows symbolic links.
Flags - specifies the attribute flags in which the client has particular interest. This parameter is supported starting with the version 4 of the SFTP protocol.


See Also





SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support