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:
@@ -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,
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user