MCPcopy Create free account
hub / github.com/itinance/react-native-fs / copyFile

Function copyFile

FS.common.js:204–206  ·  view source on GitHub ↗
(filepath: string, destPath: string, options: FileOptions = {})

Source from the content-addressed store, hash-verified

202 },
203
204 copyFile(filepath: string, destPath: string, options: FileOptions = {}): Promise<void> {
205 return RNFSManager.copyFile(normalizeFilePath(filepath), normalizeFilePath(destPath), options).then(() => void 0);
206 },
207
208 pathForBundle(bundleNamed: string): Promise<string> {
209 return RNFSManager.pathForBundle(bundleNamed);

Callers

nothing calls this directly

Calls 2

normalizeFilePathFunction · 0.85
copyFileMethod · 0.45

Tested by

no test coverage detected