فهرست منبع

check source dir at the end of checking data dir

Nick Sweeting 5 سال پیش
والد
کامیت
16f3746712
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      archivebox/config/__init__.py

+ 4 - 0
archivebox/config/__init__.py

@@ -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: