Skip to content

Commit

Permalink
Make folder on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed May 12, 2024
1 parent dae95b4 commit 9fccff7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions indexer/src/file_upload.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import re
import shutil
import pathlib
import logging
import asyncio
import tempfile
Expand Down Expand Up @@ -57,6 +58,7 @@ def move_files_for_indexed(dest_dir: str, source_dir: str, version_token: str) -
do_cleanup = True
else:
do_cleanup = True
pathlib.Path(dest_dir).mkdir(parents=True, exist_ok=True)
if do_cleanup:
files_per_build = len(os.listdir(source_dir))
builds_to_keep = 20
Expand Down

0 comments on commit 9fccff7

Please sign in to comment.