Skip to content

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

@seertenedos

Description

@seertenedos

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions