Commit Graph

2 Commits

Author SHA1 Message Date
Krishnakumar R (KK)
ecafa12ac9 fix(load-directory): Fix up file extension comparison & path list construction
The file extensions used in `cli_load.py` has '.' prefix. The comparison
in `get_filenames_in_dir` uses the strings from
`ext = file_path.suffix.lstrip(".")` resulting in strings without '.'
prefix. We fix this by giving extensions without '.' prefix in the
default list of extensions to compare against.

The file_path generated are of type PosixPath, where as string list is
expected. We fix this by converting PosixPath to string before
constructing the list.
2025-02-26 00:24:02 +00:00
Matthew Zhou
93aacc087e feat: Enable adding files (#1864)
Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
2024-10-14 10:22:45 -07:00