fix(delete functions): ensure more consistency between methods and trash behaviour

This commit is contained in:
2024-06-18 18:44:58 +02:00
parent 9adcdee0a0
commit 2a0425ff54
6 changed files with 59 additions and 26 deletions

View File

@@ -21,7 +21,7 @@ export class Trash {
const trashDir = await this.getTrashDir();
const originalPath = await helpers.reducePathDescriptorToPath(pathDescriptor);
const trashKey = await this.getTrashKeyByOriginalBasePath(originalPath);
return trashDir.getFile({ name: trashKey });
return trashDir.getFile({ path: trashKey });
}
public async getTrashKeyByOriginalBasePath (originalPath: string): Promise<string> {