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

Method copyFile

windows/RNFS/RNFSManager.cs:302–315  ·  view source on GitHub ↗
(string filepath, string destPath, JObject options, IPromise promise)

Source from the content-addressed store, hash-verified

300 }
301
302 [ReactMethod]
303 public async void copyFile(string filepath, string destPath, JObject options, IPromise promise)
304 {
305 try
306 {
307 await Task.Run(() => File.Copy(filepath, destPath)).ConfigureAwait(false);
308 promise.Resolve(null);
309
310 }
311 catch (Exception ex)
312 {
313 Reject(promise, filepath, ex);
314 }
315 }
316
317 [ReactMethod]
318 public async void readDir(string directory, IPromise promise)

Callers 1

copyFileFunction · 0.45

Calls 1

ResolveMethod · 0.80

Tested by

no test coverage detected