vfs.disconnect

function

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

Declaration
export external function disconnect
                value directory dir

Argument definitions

dir
A connected vfs.directory object


Purpose

You can use vfs.disconnect to disconnect a vfs.directory connection that is no longer needed. It is not an error to disconnect a vfs.directory that is not connected.

  import "omvfs.xmd" prefixed by vfs.
  
  process
    local vfs.directory program-directory
     	. . .
    set program-directory to vfs.connect "/foo/bin"
  	. . .
    vfs.disconnect program-directory

Exceptions

The following exceptions may occur: