remove recursive to fix digest

This commit is contained in:
fyears 2024-05-19 20:36:34 +08:00
parent 11b7fee80b
commit b0acde0ba6

View File

@ -459,8 +459,10 @@ export class FakeFsWebdav extends FakeFs {
mtime?: number, mtime?: number,
ctime?: number ctime?: number
): Promise<Entity> { ): 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, { await this.client.createDirectory(key, {
recursive: true, recursive: false,
}); });
return await this._statFromRoot(key); return await this._statFromRoot(key);
} }
@ -531,7 +533,13 @@ export class FakeFsWebdav extends FakeFs {
// throw e; // throw e;
this.isNextcloud = false; this.isNextcloud = false;
this.supportNativePartial = false; this.supportNativePartial = false;
return await this._writeFileFromRootFull(key, content, mtime, ctime, origKey); return await this._writeFileFromRootFull(
key,
content,
mtime,
ctime,
origKey
);
} }
} }