vfsFileName

function

Library: File system utilities (OMVFS legacy)
Include: omvfs.xin

Returns: the fully qualified file name in URL or local file system format


Declaration
define external stream function vfsFileName
       value  vfsFile  file

Argument definitions

file
is the vfsFile component associated with the file you want to obtain the name of.


Purpose

Use vfsFileName to get the file name of a vfsFile object.

Requirements

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

  include "omvfs.xin"

The vfsFile object file must be open (else external exception VFS200).

Usage Notes

The function returns the filename in

Example: Get the name of the file associated with a specific vfsFile variable.

The output from this program will be "/programs/myscript.xom".

  include "omvfs.xin"
  
  process
    local vfsFile myFile
    local stream file-name
  	. . .
    set myFile to vfsOpen "/programs/myscript.xom"
    	. . .
    set file-name to vfsFileName myFile
    output file-name