The "VFS" object
In all event-handlers that fire after a user has successfully logged in and accessed at least its own Home-VFS, the following line of code returns a VFS
object:
var vfs = Session.GetCurrentVFS();
This object’s methods are defined as follows:
class VirtualFileSystem {
function GetID(): string;
Name: string;
Type: string;
Target: string;
TargetPayload: string;
Encrypt: boolean;
}
All of the above methods return read-only property values. It’s not allowed to edit, change, or otherwise modify a user account inside of a script. This object is provided for informational purposes.