Creating Virtual Files

Virtual files can be created explicitly or implicitly.

Explicit creation

Use the following functions:

Implicit creation

A virtual file can also appear implicitly when the option "all changes are virtual" is enabled. In this mode, a virtual file is created automatically when you create a new file.

  • If the parent directory was created with BoxedAppSDK_CreateCustomVirtualDirectory, that same method is used to create the file inside it.
  • If the parent directory is neither a virtual directory nor one created with BoxedAppSDK_CreateVirtualDirectory, then BoxedApp chooses the method based on what you are creating: for a regular file it uses BoxedAppSDK_CreateVirtualFile, and for a directory it uses BoxedAppSDK_CreateVirtualDirectory.