function
| 
                
Library: File system utilities (OMVFS legacy)
 Include: omvfs.xin  | 
              
 Returns: The function returns the current directory for the specified vfsDir object or the local file system.  | 
            
define external stream function vfsDirName
or
define external stream function vfsDirName
    on value    vfsDir dir
Argument definitions
Use vfsDirName to return the name of:
You must include the following line at the beginning of your OmniMark program:
include "omvfs.xin"
The vfsDir object dir must:
General OS operation failure exceptions will return external exception VFS300. The accompanying text will contain details on the reason for the exception.
Obtaining the URLs for a connected vfsDir object and the current working directory on the local file sytem.
include "omvfs.xin" process local stream myDir local stream CWD . . . set Helsinki to vfsConnect "file:///c:/Formats/Style/" . . . set myDir to vfsDirName on Helsinki set CWD to vfsDirName