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

Function copyFileAssets

FS.common.js:364–369  ·  view source on GitHub ↗
(filepath: string, destPath: string)

Source from the content-addressed store, hash-verified

362
363 // Android only
364 copyFileAssets(filepath: string, destPath: string) {
365 if (!RNFSManager.copyFileAssets) {
366 throw new Error('copyFileAssets is not available on this platform');
367 }
368 return RNFSManager.copyFileAssets(normalizeFilePath(filepath), normalizeFilePath(destPath)).then(() => void 0);
369 },
370
371 // Android only
372 copyFileRes(filename: string, destPath: string) {

Callers

nothing calls this directly

Calls 2

normalizeFilePathFunction · 0.85
copyFileAssetsMethod · 0.80

Tested by

no test coverage detected