GetAbsPath()

// in class: Session
function GetAbsPath(): string;

This function returns the absolute path of the last file operation as pointed to by the current VFS.

Example

{
  // 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`
}