vfs.make-directory

function

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: