interface FileSystemMain { $copy(resource,
target,
opts): Promise<void>; $delete(resource,
opts): Promise<void>; $mkdir(resource): Promise<void>; $onFileSystemChange(handle,
resource): void; $readFile(resource): Promise<BinaryBuffer>; $readdir(resource): Promise<[string, FileType][]>; $registerFileSystemProvider(handle,
scheme,
capabilities,
readonlyMessage?): void; $rename(resource,
target,
opts): Promise<void>; $stat(uri): Promise<Stat>; $unregisterProvider(handle): void; $writeFile(resource,
content): Promise<void>; } Methods
$copy
- $copy(resource, target, opts): Promise<void>
Parameters
- resource: UriComponents
- target: UriComponents
- opts: FileOverwriteOptions
Returns Promise<void>
$delete
- $delete(resource, opts): Promise<void>
Parameters
- resource: UriComponents
- opts: FileDeleteOptions
Returns Promise<void>
$mkdir
- $mkdir(resource): Promise<void>
Returns Promise<void>
$onFileSystemChange
- $onFileSystemChange(handle, resource): void
Returns void
$readFile
- $readFile(resource): Promise<BinaryBuffer>
Returns Promise<BinaryBuffer>
$readdir
- $readdir(resource): Promise<[string, FileType][]>
Returns Promise<[string, FileType][]>
$registerFileSystemProvider
- $registerFileSystemProvider(handle, scheme, capabilities, readonlyMessage?): void
Parameters
- handle: number
- scheme: string
- capabilities: FileSystemProviderCapabilities
Optional
readonlyMessage: MarkdownString
Returns void
$rename
- $rename(resource, target, opts): Promise<void>
Parameters
- resource: UriComponents
- target: UriComponents
- opts: FileOverwriteOptions
Returns Promise<void>
$stat
- $stat(uri): Promise<Stat>
Returns Promise<Stat>
$unregisterProvider
- $unregisterProvider(handle): void
Returns void
$writeFile
- $writeFile(resource, content): Promise<void>
Parameters
- resource: UriComponents
- content: BinaryBuffer
Returns Promise<void>