diff --git a/tdrive/backend/node/src/services/webdav/nephele/adapter/resource.ts b/tdrive/backend/node/src/services/webdav/nephele/adapter/resource.ts index 2e63c192..852acd02 100644 --- a/tdrive/backend/node/src/services/webdav/nephele/adapter/resource.ts +++ b/tdrive/backend/node/src/services/webdav/nephele/adapter/resource.ts @@ -609,9 +609,7 @@ export class Resource implements INepheleResource { * The canonical name of the resource. (The basename of its path.) */ async getCanonicalName(): Promise { - if (!(await this.exists())) throw new this.nephele.ResourceNotFoundError(); - - return this.file.name; + return this.pathname[this.pathname.length - 1]; } /** @@ -620,8 +618,6 @@ export class Resource implements INepheleResource { * This should **not** be URL encoded. */ async getCanonicalPath(): Promise { - if (!(await this.exists())) throw new this.nephele.ResourceNotFoundError(); - return this.pathname.join("/"); }