Directory Listing API performance


I hope my question is correctly placed into this category. I am a newbie with NC so I hope my question will not be too silly.

I would like to call NC’s APIs for one of my projects. Concretely I would need to get a directory listing for a given folder so that I get the file names and their last modification dates.

I found such API in the NC API docs but I want to ask how NC code is implementing this API. Specifically I’d like to know whether NC internally goes to disc and lists the file in the file system or it finds the information in the DB or both. I would need this information for performance reasons.

1 Like

Nextcloud keeps a list of all files it knows about in the database for exactly this reason. So, you can assume it’s fast.