rely on implicit glob for my.reddit

This commit is contained in:
Dima Gerasimov 2020-05-03 16:56:05 +01:00
parent 5706f690e7
commit 9bd61940b8
2 changed files with 8 additions and 4 deletions

View file

@ -15,9 +15,10 @@ import my.config.repos.rexport.dal as rexport
def get_sources() -> Sequence[Path]:
# TODO use zstd?
# TODO maybe add assert to get_files? (and allow to suppress it)
files = get_files(config.export_dir, glob='*.json.xz')
# TODO rename to export_path?
files = get_files(config.export_dir)
res = list(map(CPath, files)); assert len(res) > 0
# todo move the assert to get_files?
return tuple(res)