You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is your current rclone version (output from rclone version)?
rclone v1.53.2-DEV
os/arch: darwin/amd64
go version: go1.15.3
What problem are you are trying to solve?
We have a system where we need to copy files from an SFTP server to a Google Cloud Storage bucket. Our customers upload files into subdirectories on the SFTP server and when they're done, they upload an empty file named foobar_{timestmap}.xml. We wish to transfer the entire sub-directory from the SFTP server to GCS only once this file has been uploaded.
How do you think rclone should be changed to solve that?
I was thinking --exclude-unless-present (in line with --exclude-if-present) or possibly --include-if-present (although I think the former naming is more accurate).
I can't find an issue that would explain reasons why the flag was added. IMHO, if it helped to fix a storage provider issue then it's reasonable. Otherwise, not.
We'd better wait for @ncw here.
Currently rclone can be seen as a swiss army knife for cloud storages. If somebody decides to reposition it as a generic file workflow tool, then ok, we'd better start laying out internal api and config formats to express chains of events, conditions and actions.
Activity
ivandeex commentedon Nov 10, 2020
Such logic is traditionally implemented in ad-hoc workflow scripts. This feature doesn't belong with rclone by nature, I believe.
denizdogan commentedon Nov 10, 2020
@ivandeex Couldn't you argue the same about already existing features such as
--exclude-if-present?ivandeex commentedon Nov 10, 2020
I can't find an issue that would explain reasons why the flag was added. IMHO, if it helped to fix a storage provider issue then it's reasonable. Otherwise, not.
We'd better wait for @ncw here.
Currently rclone can be seen as a swiss army knife for cloud storages. If somebody decides to reposition it as a generic file workflow tool, then ok, we'd better start laying out internal api and config formats to express chains of events, conditions and actions.
ivandeex commentedon Nov 10, 2020
This particular use case does not seem to be related to a problem with a storage backend, nor is it generic enough.
ivandeex commentedon Nov 19, 2021
Request captured in #4810 (comment)
Superseded by #4810