10 Commits

Author SHA1 Message Date
Georges-Antoine Assi
51652d5084
make all path stuff async 2025-07-18 10:53:55 -04:00
Georges-Antoine Assi
c93687a0f4
handle some errors better 2025-07-17 18:15:44 -04:00
Georges-Antoine Assi
48eab4c957
fix a bunch of tests 2025-07-17 15:48:46 -04:00
Georges-Antoine Assi
8098d7199f
complete resournces handler 2025-07-17 12:38:40 -04:00
Georges-Antoine Assi
aaf6741e93
Create safe filesystem handler 2025-07-17 12:30:57 -04:00
Georges-Antoine Assi
c9b09e9ee1
better search term nomralization 2025-07-12 23:52:51 -04:00
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
Georges-Antoine Assi
b2085f87a8
bunch of fixes for trunk 2024-05-21 17:10:11 -04:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files 2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
dc33054ba1
more name refactoring 2024-05-05 16:45:58 -04:00