mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-06 17:28:29 +08:00
fix(core): corrected references in file system access (#10644)
This commit is contained in:

committed by
GitHub

parent
a2aa2613c6
commit
e5caa2cc53
@ -261,7 +261,7 @@ export class FileSystemAccess implements IFileSystemAccess {
|
||||
return org.nativescript.widgets.Async.File.copySync(src, dest, getApplicationContext());
|
||||
} catch (error) {
|
||||
if (onError) {
|
||||
onError(exception);
|
||||
onError(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -274,7 +274,7 @@ export class FileSystemAccess {
|
||||
try {
|
||||
didRemove = fileManager.removeItemAtPathError(dest);
|
||||
return fileManager.copyItemAtPathToPathError(src, dest);
|
||||
} catch (error) {
|
||||
} catch (exception) {
|
||||
if (onError) {
|
||||
if (didRemove) {
|
||||
onError(error);
|
||||
@ -285,7 +285,7 @@ export class FileSystemAccess {
|
||||
}
|
||||
}
|
||||
if (onError) {
|
||||
onError(exception);
|
||||
onError(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user