Method
copyFile
(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) |
Tested by
no test coverage detected