Don't trigger delete

This commit is contained in:
Andras Schmelczer 2025-02-25 22:53:25 +00:00
parent 9cebf53707
commit 0b5f3f3921
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 2 additions and 1 deletions

View file

@ -155,7 +155,6 @@ export class FileOperations {
await this.fs.rename(newPath, deconflictedPath);
} else {
await this.database.deleteDocument(newPath);
await this.fs.delete(newPath);
}
} else {
await this.createParentDirectories(newPath);

View file

@ -13,5 +13,7 @@ export interface FileSystemOperations {
exists: (path: RelativePath) => Promise<boolean>;
createDirectory: (path: RelativePath) => Promise<void>;
delete: (path: RelativePath) => Promise<void>;
// Must be able to handle renaming to a file that already exists
rename: (oldPath: RelativePath, newPath: RelativePath) => Promise<void>;
}