PrivateconstructorPrivate_ReadonlyonEvent fired when files change in the virtual file system.
PrivaterealPrivatevirtualPrivate StaticinstanceCreate a new directory.
The URI of the directory to create
Delete a file or directory.
The URI to delete
Delete options (recursive flag)
Clean up all mappings.
Get the real file path for a virtual URI.
Virtual URI to resolve
Real file path or undefined if not found
Get the virtual URI for a real file path.
Real file path to resolve
Virtual URI or undefined if not found
Read the contents of a directory.
The URI of the directory
Array of [name, type] tuples representing directory contents
Read the contents of a file.
The URI of the file to read
The file contents as a byte array
Register a mapping between a virtual URI and a real file path.
Clean path for the virtual URI (e.g., "Space Name/Notebook.ipynb")
Actual file system path to the document
The created virtual URI with datalayer:// scheme
Rename or move a file or directory.
The current URI
The new URI
Rename options (overwrite flag)
Get metadata about a file or directory.
The URI of the file or directory
Metadata about the file or directory
Watch a file or directory for changes.
The URI to watch
A disposable that stops watching when disposed
Write data to a file.
The URI of the file to write
The content to write
Write options (create and overwrite flags)
StaticgetGets the singleton instance of DatalayerFileSystemProvider.
The singleton instance
Virtual file system provider that maps Datalayer documents to clean URI scheme. Allows VS Code to display "datalayer://Space Name/Notebook.ipynb" instead of temp paths.
Example