Skip to content

Commit

Permalink
fix(core): corrected references in file system access (NativeScript#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchABus authored Nov 3, 2024
1 parent a2aa261 commit e5caa2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/file-system/file-system-access.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/core/file-system/file-system-access.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -285,7 +285,7 @@ export class FileSystemAccess {
}
}
if (onError) {
onError(exception);
onError(error);
}
}

Expand Down

0 comments on commit e5caa2c

Please sign in to comment.