Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload when there are any files otherwise don't log/run #72

Open
seertenedos opened this issue Nov 30, 2019 · 1 comment
Open

Upload when there are any files otherwise don't log/run #72

seertenedos opened this issue Nov 30, 2019 · 1 comment

Comments

@seertenedos
Copy link

Describe the problem
I would like to use CloudPlow to upload files within a minute of them being created. While you can specify a max file/folder size trigger i need to set that to 0 to capture small text files. It would be great if there was an option to specify that there must also be atleast one file. If you are running every minute to check if there are any files currently the logs end up quite large with just junk runs to say it found no files.

Describe any solutions you think might work
Add a config setting for the uploader to add a requirement that there needs to be atleast one file in the folder to upload. Ignore folders when checking. Ideally also have an option to no log the run at all if there was no file found so as to keep the logs and console just having useful info like when actual uploads happen.

Another option may be to use a different trigger for a run. Maybe having the 2 triggers below not just a timer.

  1. A setting to trigger upload on start up. (as in as soon as you start no waiting for timer to trigger)
  2. A setting to trigger based on a file watcher. This could maybe tigger when a file is written to or created or a lock removed with maybe a short delay to give the action time to complete like 10-30 seconds.
@efanibi25
Copy link

efanibi25 commented Sep 21, 2020

I've added a inotify mode: this should only log when a folder is detected as being changed

#93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants