Skip to content

Commit 5bb8e09

Browse files
committed
Appeears files are nested
1 parent da0d48b commit 5bb8e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

earthpy/api/appeears.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,12 @@ def download_files(self, cache=True):
300300
Use cache to avoid repeat downloads
301301
"""
302302
if cache:
303-
existing_files = glob(os.path.join(self.data_dir, '*' '*.tif'))
303+
existing_files = glob(os.path.join(self.data_dir, '*', '*.tif'))
304304
if existing_files:
305305
logging.info(
306306
'Files already exist in {}. '
307307
'Set cache=False to overwrite.'.format(self.data_dir))
308-
return
308+
return existing_files
309309

310310
# Check task status
311311
status = self.task_status

0 commit comments

Comments
 (0)