Skip to content

CapacitorAdapterFs.copy method

CapacitorAdapterFs › copy

Unofficial

Copy a file to a new path.

Signature:

copy(realPath: string, newRealPath: string): Promise<void>

Parameters:

ParameterTypeDescription
realPathstringSource file path.
newRealPathstringDestination file path.

Returns: Promise<void>A promise that resolves when the file is copied.