Readonly
capabilitiesThe FileSystemProviderCapabilities for this provider.
Readonly
onReadonly
onEvent that is fired if a (watched) file in the filesystem of this provider has changed.
Readonly
onEvent 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.
Optional
mode: numberAn 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
closeOptional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See FileSystemProviderWithOpenReadWriteCloseCapability#close for additional documentation.
Optional
copyOptional function that has to be implemented by FileSystemProviderWithFileFolderCopyCapability. See 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.
Optional
openOptional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See FileSystemProviderWithOpenReadWriteCloseCapability#open for additional documentation.
Optional
readOptional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See FileSystemProviderWithOpenReadWriteCloseCapability#read for additional documentation.
Optional
readOptional function that has to be implemented by FileSystemProviderWithFileReadWriteCapability. See FileSystemProviderWithFileReadWriteCapability#readFile for additional documentation.
Optional
readOptional function that has to be implemented by FileSystemProviderWithFileReadStreamCapability. See 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.
Optional
updateOptional function that has to be implemented by FileSystemProviderWithUpdateCapability. See FileSystemProviderWithUpdateCapability#updateFile for additional documentation.
Watch the given resource and react to changes by firing the 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
writeOptional function that has to be implemented by FileSystemProviderWithOpenReadWriteCloseCapability. See FileSystemProviderWithOpenReadWriteCloseCapability#write for additional documentation.
Optional
writeOptional function that has to be implemented by FileSystemProviderWithFileReadWriteCapability. See 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.