Extended remote folder read time (probably due to rate limiting by dropbox)
Opened this issue · 3 comments
Not sure what to do about this. Wouldn't be an issue if it was only a one time thing. Assuming every time this installer script is run as a new install it has to read the folders. A 100 gb dropbox with 51,633 Files, 16,844 Folders (minus whatever Rclone created) took approximately 1 hour.
Might be related to rclone/rclone#1788
Possible solution: change the way remote directories are checked
Now: get a list of all folders, check each entry in that list if it's the configured remote base dir
Better: Make it a direct check if the remote base dir exists (like if [ -d /path/to/dir ]; then...
)
Changed the way the script checks for the remote base directory with commit a8564b2. Now it tries to list the contents of remotebasedir which
- returns 0 if that directory exists
- returns 3 if that directory does not exist
That should be way faster as there's no listing of all directories in the DropBox account involved