function QueryUserHomeDirectory(const Username: string): string;



Call the QueryUserHomeDirectory method to request user home directory for the specified Username. An empty string implies the current user.

Many users are used typing '~' as an alias for their home directory, or ~username as an alias for another user's home directory. To support this feature use this method.

If the NonBlocking property is False, QueryUserHomeDirectory returns user home directory. Otherwise it returns an empty string, and in order to get the directory the OnFileName event should be processed. If the server returns an error, the OnError event is generated.


Note: this request is not supported by all SFTP servers.


See Also




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