Don't trigger delete
This commit is contained in:
parent
9cebf53707
commit
0b5f3f3921
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue