copy

abstract var copy: (source: Uri, destination: Uri, options: FileSystemProvider.CopyOptions) -> PromiseLike<Void?>??(source)

Copy files or folders. Implementing this function is optional but it will speedup the copy operation.

Parameters

source

The existing file.

destination

The destination location.

options

Defines if existing files should be overwritten.

Throws

{@linkcode FileSystemError.NoPermissions NoPermissions} when permissions aren't sufficient.

Online Documentation