Closed JakubCzarniecki closed 7 years ago
Maybe just use http://erlang.org/doc/man/filelib.html#fold_files-5 ?
Good suggestion @seriyps.
If we find it useful we could allow filename filtering by extension / regex in jesse:load_schemas/2,3
and jesse_database:add_path/3
but it is out of the scope of this PR.
"Oops" Thanks!
Problem:
jesse_database:list_dir/1
is broken - while recursively listing files in directory it produces a nested list of filenames i.e.instead of
This produces a cryptic error message when trying to use
jesse:load_schemas/2,3
orjesse_database:add_path/3
:Solution: Make
jesse_database:list_dir/1
always produce a flat list of files within directory, appending any subdirectory listings.