copyFile
copyFile(
fromPath,toPath,options?):Promise<void>
Defined in: plugins/fs/guest-js/index.ts:601
Copies the contents and permissions of one file to another specified path, by default creating a new file if needed, else overwriting.
string | URL
string | URL
Promise<void>
import { copyFile, BaseDirectory } from '@tauri-apps/plugin-fs';await copyFile('app.conf', 'app.conf.bk', { fromPathBaseDir: BaseDirectory.AppConfig, toPathBaseDir: BaseDirectory.AppConfig });2.0.0
© 2025 Tauri Contributors. CC-BY / MIT