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

vfs.make-directory

 
 

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

Declaration

export external function make-directory
                value string path
        on      value directory on-dir optional

Argument definitions

path
The directory to be created.
on-dir
A connected vfs.directory object. If this parameter is specified, the path parameter is interpreted relative to the vfs.directory and must be expressed as a relative URL.


Purpose

You can use vfs.make-directory to create a new directory under an existing directory.

This program adds a directory to the omnimark\projects directory.

  import "omvfs.xmd" prefixed by vfs.
  
  
  process
    vfs.make-directory "c:\omnimark\projects\vfstest"

Note that vfs.make-directory will only create one level of directory at a time. The above program will fail if the directory c:\omnimark\projects does not exist.

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.