• Creates a virtual file system for managing files only (no directories). This file system is entirely in-memory and does not interact with the host file system.

    Parameters

    • root: string

      The root directory for the virtual file system.

    • fileSystemTree: FileSystemTree = {}

      The initial structure of the in-memory file system. Default is an empty object.

    • readonly: boolean = true

      If true, prevents write operations. Default is true.

    Returns VirtualFileSystem

    A VirtualFileSystem instance for managing in-memory files.