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
FileNotFound
FileSystemError.FileNotFound when parent of destination doesn't exist, e.g. no mkdirp-logic required.
FileExists
FileSystemError.FileExists when destination exists and when the overwrite option is not true.
NoPermissions
FileSystemError.NoPermissions when permissions aren't sufficient.