Files
romm/backend
Michael Manganiello f20a9ffe34 fix: Avoid recursive os.walk calls
`os.walk` is a generator that can iteratively navigate from the
specified path, top-bottom. However, most of the calls to `os.walk` in
the project cast the call to `list()`, which makes it traverse the path
and recursively find all nested directories.

This is commonly not needed, as we end up just using a `[0]` index to
only access the root path.

This change adds a few utils that simplifies listing files/directories,
and by default does it non-recursively. Performance gains shouldn't be
noticeable in systems with high-speed storage, but we can avoid the edge
cases of users having too many nested directories, by avoiding unneeded
I/O.
2024-07-13 15:30:04 -03:00
..
2024-05-21 17:10:11 -04:00
2024-07-11 08:47:59 +02:00
2024-05-24 12:01:47 -04:00
2024-02-02 17:09:45 -05:00
2024-06-26 00:17:49 -03:00
2024-07-13 15:30:04 -03:00
2024-02-10 12:43:39 -05:00
2024-05-21 10:18:13 -04:00
2024-05-21 10:18:13 -04:00
2024-05-21 10:18:13 -04:00