fix(core): corrected references in file system access (#10644)

This commit is contained in:
Dimitris-Rafail Katsampas
2024-11-03 04:53:55 +02:00
committed by GitHub
parent a2aa2613c6
commit e5caa2cc53
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}