swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Topics   Other Library Functions  
function  

vfs.file-name

 
 

Library: File system utilities (OMVFS)
Import: omvfs.xmd
Return type: String

Returns: The fully qualified file name.


Declaration

export external stream function file-name
        of      value file file-ref

Argument definitions

file
The vfs.file component associated with the file you want to obtain the name of.


Purpose

You can use vfs.file-name to get the file name of a vfs.file object.

  import "omvfs.xmd" prefixed by vfs.
  
  process
    local vfs.file myFile
    set myFile to vfs.open "/programs/myscript.xom"
    output vfs.file-name of myFile

The function returns the filename in URL format if the file was opened using an URL, or in the local file system format if the file was opened using a local path.

Exceptions

The following exceptions may occur:

    Related Topics
 
Other Library Functions
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.