remove recursive to fix digest

This commit is contained in:
fyears 2024-05-19 20:36:34 +08:00
parent 11b7fee80b
commit b0acde0ba6
1 changed files with 10 additions and 2 deletions

View File

@ -459,8 +459,10 @@ export class FakeFsWebdav extends FakeFs {
mtime?: number,
ctime?: number
): Promise<Entity> {
// the sync algorithm should do recursive manually already.
// if we set recursive: true here, Digest auth will return some error inside the PROPFIND
await this.client.createDirectory(key, {
recursive: true,
recursive: false,
});
return await this._statFromRoot(key);
}
@ -531,7 +533,13 @@ export class FakeFsWebdav extends FakeFs {
// throw e;
this.isNextcloud = false;
this.supportNativePartial = false;
return await this._writeFileFromRootFull(key, content, mtime, ctime, origKey);
return await this._writeFileFromRootFull(
key,
content,
mtime,
ctime,
origKey
);
}
}