Test utility: Clear all files from memory. Useful for resetting state between tests.
Check if a path points to a directory.
Path to check
Promise resolving to true if path is a directory, false otherwise
Always false: directories are not tracked.
Check if a file or directory exists.
Path to check
Promise resolving to true if exists, false otherwise
Check if a path points to a file (not a directory).
Path to check
Promise resolving to true if path is a file, false otherwise
Returns true when the path is stored.
Test utility: Get all file paths currently in memory. Useful for debugging and assertions in tests.
Always returns /.
Not implemented: always returns an empty array.
Always true: paths are compared as stored.
No-op: directories are implicit.
Lists the files directly below a directory path. Subdirectories are not reported.
Returns the path unchanged.
Test utility: Get the number of files in memory.
Stores the content under the given path.
In-memory file system adapter for testing. All operations are performed on an in-memory Map, enabling:
Usage in tests: