Skip to content

GetRelPath()

ts
GetRelPath(): string;

Returns the relative VFS-root-based path of the last file operation as pointed to by the current VFS.

Example

ts
{
  if (Session) {
    // Let's say the last file operation occurred on file `/docs/resume.pdf`
    var rp = Session.GetRelPath();
    Log(rp); // Will log `/docs/resume.pdf`
  } else {
    Log('Session object is not available.');
  }
}