From b8e5e1d5bd5df2399ff3866b19886f3cabf8cc0c Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 4 Feb 2019 19:21:00 -0800 Subject: [PATCH] skip media when folder exists, even if empty --- archivebox/archive_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/archive_methods.py b/archivebox/archive_methods.py index 0769ba31..5f5bcf18 100644 --- a/archivebox/archive_methods.py +++ b/archivebox/archive_methods.py @@ -496,7 +496,7 @@ def fetch_media(link_dir, link, timeout=MEDIA_TIMEOUT, overwrite=False): # import ipdb; ipdb.set_trace() output = os.path.join(link_dir, 'media') - already_done = os.path.exists(output) and os.listdir(output) + already_done = os.path.exists(output) # and os.listdir(output) if already_done and not overwrite: return {'output': 'media', 'status': 'skipped'}