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