GetAbsPath()
ts
GetAbsPath(): string;Returns the absolute path of the last file operation as pointed to by the current VFS.
Example
ts
{
if (Session) {
// Let's say the current VFS is of type `Disk` and has its root in `C:\SFTPData`
// and the last file operation occurred on file `/docs/resume.pdf`
var ap = Session.GetAbsPath();
Log(ap); // Will log `C:\SFTPData\docs\resume.pdf`
} else {
Log('Session object is not available.');
}
}