Wiki
Clone wikiDWScript / TdwsRestrictedFileSystem
- summary Provides a VFS made from a subset of the host OS file system.
Introduction
TdwsRestrictedFileSystem aggregates a set of directories as a VirtualFileSystem for scripting purposes.
Details
The directories are specified by the Paths property, each of them is exposed as root in the VFS. For instance if you have on the host OS the following directory structure:
- DirA
- SubDir1
- Something
- DirB
- SubDir2
- SubDir3
- AnotherThing
If you specify your paths as
\DirA \DirB\SubDir2
the exposed directories in the VFS will be
- SubDir1
- Something
- SubDir3
and all files directly available in \DirA and \DirB\SubDir2 will be in the root of the VFS.
In case of files/directories with similar names, the VFS will expose those found first in the Paths order.
Updated