fileSystem.copy
Copies a file or a directory; replaces whatever is at to.
Usage
Copy a file to persistent storage.
// Copy a file to persistent storage.
import { fileSystem } from 'kuito';
await fileSystem.copy(fileSystem.bundle + 'seed.db', fileSystem.documents + 'app.db');Signatures
(from: string, to: string): Promise<void>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
from | string | Yes | — |
to | string | Yes | — |
Returns
Promise<void>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.