bisync: expose deltaList/recover and require checkAccess

Wire forked rclone --delta-list: UI switches, RC outer params, and
auto-set checkAccess when deltaList is on so scheduled jobs cannot
omit the safety flag.
This commit is contained in:
2026-09-09 23:56:37 +02:00
parent caa086bdb4
commit 7286008949
2 changed files with 46 additions and 5 deletions
+8 -2
View File
@@ -492,6 +492,12 @@ export function buildBisyncRequests(args: BisyncArgs): RcRequest[] {
const { fullDirPath: srcFullDirPath, remoteName: srcRemoteName } = getFsInfo(source)
const { fullDirPath: dstFullDirPath, remoteName: dstRemoteName } = getFsInfo(destination)
const outer = { ...(options.outer || {}) }
// Forked rclone: --delta-list refuses to run without --check-access unless --force.
if (outer.deltaList && !outer.force) {
outer.checkAccess = true
}
return [
{
endpoint: '/sync/bisync',
@@ -504,9 +510,9 @@ export function buildBisyncRequests(args: BisyncArgs): RcRequest[] {
}),
...(configParam ? { _config: configParam } : {}),
...(filterParam ? { _filter: filterParam } : {}),
...(options.outer && Object.keys(options.outer).length > 0
...(Object.keys(outer).length > 0
? Object.fromEntries(
Object.entries(options.outer).map(([key, value]) => [
Object.entries(outer).map(([key, value]) => [
key,
Array.isArray(value) ? value.join(',') : value,
])