Creates a basic virtual file system:

The file system will look like this:
/
   dir1/
      a.txt
   dir2/
   dir3/


VirtualDirectory root = new VirtualDirectory(null, null);
root.ReadOnly = true;

VirtualDirectory dir1 = new VirtualDirectory(root, "dir1");
VirtualFile file1 = new VirtualFile(dir1, "a.txt");
dir1.GetItems().Add(file1);

VirtualDirectory dir2 = new VirtualDirectory(root, "dir2");

VirtualDirectory dir3 = new VirtualDirectory(root, "dir3");

VirtualFileSystem fileSystem = new VirtualFileSystem(root);

Last edited Nov 25, 2007 at 4:10 PM by joegtp, version 2

Comments

No comments yet.