1
0
Fork 0
mirror of synced 2024-06-02 10:34:43 +12:00

check source dir at the end of checking data dir

This commit is contained in:
Nick Sweeting 2020-07-13 11:24:36 -04:00
parent 96b1e4a8ec
commit 16f3746712

View file

@ -838,6 +838,10 @@ def check_data_folder(out_dir: Optional[str]=None, config: ConfigDict=CONFIG) ->
stderr(' archivebox init')
raise SystemExit(3)
sources_dir = os.path.join(output_dir, SOURCES_DIR_NAME)
if not os.path.exists(sources_dir):
os.makedirs(sources_dir)
def setup_django(out_dir: str=None, check_db=False, config: ConfigDict=CONFIG) -> None: