Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DiskFileSystemProvider

Implements

Index

Constructors

Properties

BUFFER_SIZE: number = ...
_capabilities: undefined | FileSystemProviderCapabilities
canFlush: boolean = true
encodingService: EncodingService
mapHandleToPos: Map<number, number> = ...
onDidChangeCapabilities: Event<any> = Event.None

Event that is fired if the capabilities of this provider have changed.

onDidChangeFile: Event<readonly FileChange[]> = ...

Event that is fired if a (watched) file in the filesystem of this provider has changed.

onDidChangeFileEmitter: Emitter<readonly FileChange[]> = ...
onFileWatchError: Event<void> = ...

Event that is fired if an error occurred when watching files in the filesystem of this provider.

onFileWatchErrorEmitter: Emitter<void> = ...
toDispose: DisposableCollection = ...
writeHandles: Set<number> = ...

Accessors

Methods

  • access(resource: URI, mode?: number): Promise<void>
  • close(fd: number): Promise<void>
  • dispose(): void
  • doCopy(source: string, target: string, copiedSourcesIn?: {}): Promise<void>
  • doCopyFile(source: string, target: string, mode: number): Promise<void>
  • doWrite(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • fsPath(resource: URI): Promise<string>
  • init(): void
  • mkdir(resource: URI): Promise<void>
  • mkdirp(path: string, mode?: number): Promise<void>
  • move(source: string, target: string): Promise<void>
  • normalizePos(fd: number, pos: number): null | number
  • read(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • readFile(resource: URI): Promise<Uint8Array>
  • readFileStream(resource: URI, opts: FileReadStreamOptions, token: CancellationToken): ReadableStreamEvents<Uint8Array>
  • readdir(resource: URI): Promise<[string, FileType][]>
  • rimraf(path: string): Promise<void>
  • rimrafMove(path: string): Promise<void>
  • rimrafUnlink(path: string): Promise<void>
  • stat(resource: URI): Promise<Stat>
  • toFilePath(resource: URI): string
  • toType(entry: Stats, symbolicLink?: { dangling: boolean }): FileType
  • updatePos(fd: number, pos: null | number, bytesLength: null | number): void
  • validateTargetDeleted(from: URI, to: URI, mode: "copy" | "move", overwrite?: boolean): Promise<void>
  • write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>
  • writeFile(resource: URI, content: Uint8Array, opts: FileWriteOptions): Promise<void>