Skip to content

--depth parameter for files:scan  #13640

@unnilennium

Description

@unnilennium

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions