The FileSystemProviderCapabilities for this provider.
Event that is fired if the capabilities of this provider have changed.
Event that is fired if a (watched) file in the filesystem of this provider has changed.
Event that is fired if an error occurred when watching files in the filesystem of this provider.
Tests a user's permissions for the file or directory specified by URI.
The URI
of the file that should be tested.
An optional integer that specifies the accessibility checks to be performed.
Check FileAccess.Constants
for possible values of mode.
It is possible to create a mask consisting of the bitwise OR
of two or more values (e.g. FileAccess.Constants.W_OK | FileAccess.Constants.R_OK).
If mode
is not defined, FileAccess.Constants.F_OK
will be used instead.
A promise that resolves if the user has the required permissions, should be rejected otherwise.
Optional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See {@link FileSystemProviderWithOpenReadWriteCloseCapability#close} for additional documentation.
Optional function that has to be implemented by FileSystemProviderWithFileFolderCopyCapability. See {@link FileSystemProviderWithFileFolderCopyCapability#copy}} for additional documentation.
Delete the given resource.
The URI
of the resource to delete.
Options to define if files should be deleted recursively and if the trash should be used.
Returns the path of the given file URI, specific to the backend's operating system. If the URI is not a file URI, undefined is returned.
USE WITH CAUTION: You should always prefer URIs to paths if possible, as they are portable and platform independent. Paths should only be used in cases you directly interact with the OS, e.g. when running a command on the shell.
URI
of the resource to derive the path from.
A promise of the corresponding file system path.
Create a new directory using the given resource uri.
The URI
of the new folder.
Optional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See {@link FileSystemProviderWithOpenReadWriteCloseCapability#open} for additional documentation.
Optional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See {@link FileSystemProviderWithOpenReadWriteCloseCapability#read} for additional documentation.
Optional function that has to be implemented by FileSystemProviderWithFileReadWriteCapability. See {@link FileSystemProviderWithFileReadWriteCapability#readFile} for additional documentation.
Optional function that has to be implemented by FileSystemProviderWithFileReadStreamCapability. See {@link FileSystemProviderWithFileReadStreamCapability#readFileStream} for additional documentation.
Rename a file or folder.
URI
of the existing file or folder.
URI
of the target location.
Options to define if existing files should be overwritten.
Retrieve metadata about a given file.
A promise of the metadata about the resource.
Optional function that has to be implemented by FileSystemProviderWithUpdateCapability. See {@link FileSystemProviderWithUpdateCapability#updateFile} for additional documentation.
Watch the given resource and react to changes by firing the {@link FileSystemProvider#onDidChangeFile} event.
URI
of the resource to be watched.
Options to define if the resource should be watched recursively and to provide a set of resources that should be excluded from watching.
A Disposable
that can be invoked to stop watching the resource.
Optional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See {@link FileSystemProviderWithOpenReadWriteCloseCapability#write} for additional documentation.
Optional function that has to be implemented by FileSystemProviderWithFileReadWriteCapability. See {@link FileSystemProviderWithFileReadWriteCapability#writeFile} for additional documentation.
Subtype of FileSystemProvider that ensures that the optional functions needed for providers, that should be able access files, are implemented.