function
Library: File system utilities (OMVFS legacy)
Include: omvfs.xin |
define external function vfsDeleteDir value stream directory-path contents value switch contents (optional) or define external function vfsDeleteDir value stream directory-URL on value vfsDir dir contents value switch contents (optional)
Argument definitions
Use vfsDeleteDir to remove an existing directory.
You must include the following line at the beginning of your OmniMark program:
include "omvfs.xin"
directory-path must:
directory-URL must:
The vfsDir object dir must:
If contents is supplied it must be either:
External exception VFS300 is thrown for any general OS operation failure. The text accompanying the exception will contain details on the reason for the failure.
External exception VFS111 is thrown if an URL supplied as a parameter to this function contains invalid encoding.
External exception VFS004 is thrown if the URL exceeds system length limits.
For complete details on absolute URLs and valid encoding, see Internet Standards RFC 1738: Uniform Resource Locators.
For complete details on relative URLs, see Internet Standards RFC 1808: Relative Uniform Resource Locators.
Removing a directory and all its contents from the local file system.
include "omvfs.xin" process vfsDeleteDir "/Program Files/Games/oldVersions" contents VFS-INCLUDED