andreped commited on
Commit
3146ddd
·
1 Parent(s): 70cd26f

Return os.listdir from generator

Browse files
Files changed (1) hide show
  1. AeroPath.py +5 -1
AeroPath.py CHANGED
@@ -128,4 +128,8 @@ class AeroPath(datasets.GeneratorBasedBuilder):
128
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
129
  urls = _URLS[self.config.name]
130
  data_dir = dl_manager.download_and_extract(urls)
131
- return None
 
 
 
 
 
128
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
129
  urls = _URLS[self.config.name]
130
  data_dir = dl_manager.download_and_extract(urls)
131
+
132
+ print("data_dir:", data_dir)
133
+
134
+ return [os.path.join(data_dir, x) for x in os.listdir(data_dir)]
135
+