LookupWHFSObject (open)

Look up an object id by path

Syntax

LOADLIB "mod::system/lib/whfs.whlib";

INTEGER FUNCTION LookupWHFSObject(INTEGER startingpoint, STRING fullpath)

Parameters

INTEGER startingpoint

Folder id where we start looking. Set to 0 to start from root

STRING fullpath

Full path, from starting point. May contain '..' and '.' parts. If the fullpath starts with a '/', any '..' component can't move beyond the initial path. May also contain a site:: or whfs:: absolute path

Return value

INTEGER

The destination folder id, 0 if we wound up at the WHFS root, or -1 if the object was not found