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

 

Description

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.

 

Parameters:

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

OnError

OnFileAttributes

RetrieveAttributesByHandle

TScSFTPFileAttributes

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