What are Virtual Directories?
Previous Top Next

Thinstall implements Virtual Directories which makes the directory appear to exist to the application, even though it may or may not exist on the real filesystem.

Applications can:

1. Change the current working directory to a virtual path (path may not exist on the real filesystem)
2. Enumerate files and subdirectories

When using the Thinstall project wizzard to setup up a new project, any subdirectory found in the base tree is automatically added to the project.


Known Virtual Directory Problems

· When launching another process, the current working directory will be set to the last "real" working directory

· When changing the current directory to another drive from a virtual path and changing back, the previous drive will revert to the last "real" working directory. For example:

chdir("d:\");
chdir("d:\MyVirtualPath");
chdir("e:\MyVirtualPath");
chdir("d:"); // this will change to d:\ instead of d:\MyVirtualPath