fix(core): update

This commit is contained in:
2024-06-11 17:20:48 +02:00
parent 4b70edb947
commit 7245b49c31
3 changed files with 35 additions and 17 deletions

View File

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