VirtualVolume
Class: VirtualVolume

Method PrototypeDescription
Property Root As FolderItem (read only)The Root directory of your Virtual file system.


The VirtualVolume Class allows you to create a virtual file system within a single physical file. You can then use the TextInputStream, TextOutputStream, and BinaryStream classes in addition to the FolderItem's methods to manage this virtual file system.

To create a VirtualVolume object, you call either the CreateVirtualVolume or OpenAsVirtualVolume methods of a FolderItem object. If you use the CreateVirtualVolume method to create your virtual volume, you can only use the write functions of TextOutputStream and BinaryStream. However, once you have created your virtual volume, you can use OpenAsVirtualVolume and be able to read and write to your virtual file system.

To navigate to sub-folders in your VirtualVolume, you call the CreateAsFolder, Child, Item, TrueChild and TrueItem methods of a FolderItem object. Filenames are limited to 223 characters. Virtual volumes support type codes, but not creator codes.