server icon indicating copy to clipboard operation
server copied to clipboard

`--depth` parameter for `files:scan`

Open unnilennium opened this issue 7 years ago • 2 comments

Is your feature request related to a problem? Please describe. files:scan is a great functionality to allow to retrieve changes on the filesystem outside of nextcloud. However this is time and resource consuming. You can reduce the amount of ressources used with --path parameter or by selecting a user. However,t his will still lead to scan of huge quantity of files if you have a huge depth of folders, while you know you simply added or alter a file in the first level of folder.

Describe the solution you'd like a classic solution is a parameter to specify the max depth to explore for the command. This would allow to limit the amount of ressources used to update the cache efficiently.

Describe alternatives you've considered alternative would be a full implementation of kernel inotify on linux system.

unnilennium avatar Jan 17 '19 03:01 unnilennium

adding an alternative : --exclude could be great to add too, while it is not stricly an alternative, it could improve this NFR by excluding huge dir we do not want to scan regularly like /Archives///*/.

unnilennium avatar Jan 17 '19 03:01 unnilennium

I am going to close this since there doesn't seem to be a lot of interest (no upvotes) and no respond since around 2 years. Please reopen if you still want to implement this.

szaimen avatar May 21 '21 08:05 szaimen