function GetFullPath(SFTPSessionInfo: TScSFTPSessionInfo; const Path: string): string; virtual;

 

Description

Call the GetFullPath method to canonize the given path name to the absolute canonical one. GetFullPath converts path name containing ".." components or relative path name without a leading slash into the absolute path.

To get an absolute path from a relative one, the SFTPSessionInfo.HomePath property value is added at the beginning of the relative path.

 

GetFullPath calls the OnGetFullPath event handler, if it is set, or, otherwise, the DefaultGetFullPath method to execute this operation

 

Parameters:

SFTPSessionInfo - contains the information about the current SFTP session.
Path - original path which should be resolved into the absolute canonical path.
Result - returns the resolved absolute path.

 

See also

OnGetFullPath

TScSFTPSessionInfo.HomePath

DefaultRootPath

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