mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
check source dir at the end of checking data dir
This commit is contained in:
parent
96b1e4a8ec
commit
16f3746712
1 changed files with 4 additions and 0 deletions
|
@ -838,6 +838,10 @@ def check_data_folder(out_dir: Optional[str]=None, config: ConfigDict=CONFIG) ->
|
||||||
stderr(' archivebox init')
|
stderr(' archivebox init')
|
||||||
raise SystemExit(3)
|
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:
|
def setup_django(out_dir: str=None, check_db=False, config: ConfigDict=CONFIG) -> None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue