mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 01:43:14 +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());
|
return org.nativescript.widgets.Async.File.copySync(src, dest, getApplicationContext());
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (onError) {
|
if (onError) {
|
||||||
onError(exception);
|
onError(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ export class FileSystemAccess {
|
|||||||
try {
|
try {
|
||||||
didRemove = fileManager.removeItemAtPathError(dest);
|
didRemove = fileManager.removeItemAtPathError(dest);
|
||||||
return fileManager.copyItemAtPathToPathError(src, dest);
|
return fileManager.copyItemAtPathToPathError(src, dest);
|
||||||
} catch (error) {
|
} catch (exception) {
|
||||||
if (onError) {
|
if (onError) {
|
||||||
if (didRemove) {
|
if (didRemove) {
|
||||||
onError(error);
|
onError(error);
|
||||||
@ -285,7 +285,7 @@ export class FileSystemAccess {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (onError) {
|
if (onError) {
|
||||||
onError(exception);
|
onError(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user