swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax     Other Library Functions  
function   vfsDirName   Available in:
Professional
Enterprise

Library: omvfs - virtual file system
Include: omvfs.xin
Return type: String
Returns:       

The function returns the current directory for the specified vfsDir object or the local file system.


Declaration

  define external stream function vfsDirName

  or

  define external stream function vfsDirName
      on value    vfsDir dir
  where
dir
is a vfsDir object created by connecting to a directory using either vfsConnect or vfsConnectDir.


Purpose

Use vfsDirName to return the name of:

Requirements

You must include the following line at the beginning of your OmniMark program:

  include "omvfs.xin"

The vfsDir object dir must:

Usage Notes

General OS operation failure exceptions will return external exception VFS300. The accompanying text will contain details on the reason for the exception.

Example:

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

    Related Syntax
   vfsConnect
   vfsConnectDir
   vfsMakeDir
   vfsDeleteDir
   vfsChangeDir
   vfsFileDir
   vfsDir
 
  Other Library Functions
   vfsChangeDir
   vfsChangeOwner
   vfsChangePermissions
   vfsClose
   vfsConnect
   vfsConnectDir
   vfsCopy
   vfsCursorPosition
   vfsDeleteDir
   vfsDeleteFile
   vfsDescribe
   vfsDescribeFile
   vfsDir
   vfsDirName
   vfsDisconnect
   vfsFile
   vfsFileDir
   vfsFileName
   vfsIsVersionCompatible
   vfsLibraryVersion
   vfsLink
   vfsList
   vfsLock
   vfsMakeDir
   vfsMove
   vfsMoveCursor
   vfsOpen
   vfsRead
   vfsTruncate
   vfsUnlock
   vfsWrite
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ ERRORS ]

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:47 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.