Interface RemoteFileSystemServer
interface RemoteFileSystemServer { access(resource,
mode?): Promise<void>; close(fd): Promise<void>; copy(source,
target,
opts): Promise<void>; delete(resource,
opts): Promise<void>; fsPath(resource): Promise<string>; getCapabilities(): Promise<FileSystemProviderCapabilities>; getReadOnlyMessage(): Promise<undefined | MarkdownString>; mkdir(resource): Promise<void>; open(resource,
opts): Promise<number>; read(fd,
pos,
length): Promise<{ bytes: Uint8Array; bytesRead: number; }>; readFile(resource): Promise<Uint8Array>; readFileStream(resource,
opts,
token): Promise<number>; readdir(resource): Promise<[string, FileType][]>; rename(source,
target,
opts): Promise<void>; stat(resource): Promise<Stat>; unwatch(watcher): Promise<void>; updateFile(resource,
changes,
opts): Promise<FileUpdateResult>; watch(watcher,
resource,
opts): Promise<void>; write(fd,
pos,
data,
offset,
length): Promise<number>; writeFile(resource,
content,
opts): Promise<void>; } Methods
access
- access(resource, mode?): Promise<void>
Parameters
- resource: string
Optional
mode: number
Returns Promise<void>
close
- close(fd): Promise<void>
Returns Promise<void>
copy
- copy(source, target, opts): Promise<void>
Returns Promise<void>
delete
- delete(resource, opts): Promise<void>
Returns Promise<void>
fsPath
- fsPath(resource): Promise<string>
Returns Promise<string>
getReadOnlyMessage
- getReadOnlyMessage(): Promise<undefined | MarkdownString>
Returns Promise<undefined | MarkdownString>
mkdir
- mkdir(resource): Promise<void>
Returns Promise<void>
open
- open(resource, opts): Promise<number>
Returns Promise<number>
read
- read(fd, pos, length): Promise<{
bytes: Uint8Array;
bytesRead: number;
}> Parameters
- fd: number
- pos: number
- length: number
Returns Promise<{
bytes: Uint8Array;
bytesRead: number;
}>
readFile
- readFile(resource): Promise<Uint8Array>
Returns Promise<Uint8Array>
readFileStream
- readFileStream(resource, opts, token): Promise<number>
Returns Promise<number>
readdir
- readdir(resource): Promise<[string, FileType][]>
Returns Promise<[string, FileType][]>
rename
- rename(source, target, opts): Promise<void>
Returns Promise<void>
stat
- stat(resource): Promise<Stat>
Returns Promise<Stat>
unwatch
- unwatch(watcher): Promise<void>
Returns Promise<void>
watch
- watch(watcher, resource, opts): Promise<void>
Returns Promise<void>
write
- write(fd, pos, data, offset, length): Promise<number>
Parameters
- fd: number
- pos: number
- data: Uint8Array
- offset: number
- length: number
Returns Promise<number>
writeFile
- writeFile(resource, content, opts): Promise<void>
Returns Promise<void>