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

Function copyFileRes

FS.common.js:372–377  ·  view source on GitHub ↗
(filename: string, destPath: string)

Source from the content-addressed store, hash-verified

370
371 // Android only
372 copyFileRes(filename: string, destPath: string) {
373 if (!RNFSManager.copyFileRes) {
374 throw new Error('copyFileRes is not available on this platform');
375 }
376 return RNFSManager.copyFileRes(filename, normalizeFilePath(destPath)).then(() => void 0);
377 },
378
379 // iOS only
380 // Copies fotos from asset-library (camera-roll) to a specific location

Callers

nothing calls this directly

Calls 2

normalizeFilePathFunction · 0.85
copyFileResMethod · 0.80

Tested by

no test coverage detected