mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
special treatment for jianguoyun
This commit is contained in:
parent
b769becb97
commit
0cefafa491
@ -422,7 +422,20 @@ export class FakeFsWebdav extends FakeFs {
|
|||||||
// glob: "/**" /* avoid dot files by using glob */,
|
// glob: "/**" /* avoid dot files by using glob */,
|
||||||
}) as Promise<FileStat[]>;
|
}) as Promise<FileStat[]>;
|
||||||
});
|
});
|
||||||
const r2 = flatten(await Promise.all(r));
|
const r3 = await Promise.all(r);
|
||||||
|
for (const r4 of r3) {
|
||||||
|
if (
|
||||||
|
this.webdavConfig.address.includes("jianguoyun.com") &&
|
||||||
|
r4.length >= 749
|
||||||
|
) {
|
||||||
|
// https://help.jianguoyun.com/?p=2064
|
||||||
|
// no more than 750 per request
|
||||||
|
throw Error(
|
||||||
|
`出错:坚果云 api 有限制,文件列表加载不全。终止同步!`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const r2 = flatten(r3);
|
||||||
subContents.push(...r2);
|
subContents.push(...r2);
|
||||||
}
|
}
|
||||||
for (let i = 0; i < subContents.length; ++i) {
|
for (let i = 0; i < subContents.length; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user