Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
farfromrefug committed Dec 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1443f5a commit 856c44f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/utils/utils/index.ios.ts
Original file line number Diff line number Diff line change
@@ -78,8 +78,8 @@ export function showToolTip(tooltip: string, view?: View) {
}

export function moveFileOrFolder(sourceLocationPath: string, targetLocationPath: string, fileManager: NSFileManager = NSFileManager.defaultManager) {
if (fileManager.fileExistsAtPathIsDirectory(sourceLocationPath, true)) {
if (!fileManager.fileExistsAtPathIsDirectory(targetLocationPath, true)) {
if (fileManager.fileExistsAtPathIsDirectory(sourceLocationPath, true as any)) {
if (!fileManager.fileExistsAtPathIsDirectory(targetLocationPath, true as any)) {
fileManager.createDirectoryAtPathAttributes(targetLocationPath, null);
}

@@ -88,7 +88,7 @@ export function moveFileOrFolder(sourceLocationPath: string, targetLocationPath:
moveFileOrFolder(path.join(sourceLocationPath, children.objectAtIndex(i)), path.join(targetLocationPath, children.objectAtIndex(i)));
}
} else {
if (fileManager.fileExistsAtPathIsDirectory(targetLocationPath, false)) {
if (fileManager.fileExistsAtPathIsDirectory(targetLocationPath, false as any)) {
fileManager.removeItemAtPathError(targetLocationPath);
}
fileManager.copyItemAtPathToPathError(sourceLocationPath, targetLocationPath);

0 comments on commit 856c44f

Please sign in to comment.