Skip to content

Commit

Permalink
Workaround of git rules
Browse files Browse the repository at this point in the history
Git won't acknowledge directories without any files within them.
Now if file structure is not complete it will create one. (solved srbhr#272)
  • Loading branch information
P4jMepR committed Jun 30, 2024
1 parent 58f346c commit c912d21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run_first.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@

init_logging_config()

processed_Path = os.path.join(os.getcwd(), "Data", "Processed")
if not os.path.exists(os.path.join(processed_Path)):
logging.info('"/Processed/" directory structure is missing, setting up a new one.\n')
os.mkdir(processed_Path)
os.mkdir(os.path.join(processed_Path, "Resumes"))
os.mkdir(os.path.join(processed_Path, "Data"))


PROCESSED_RESUMES_PATH = os.path.join(os.getcwd(), "Data", "Processed", "Resumes")
PROCESSED_JOB_DESCRIPTIONS_PATH = os.path.join(os.getcwd(), "Data", "Processed", "JobDescription")

Expand Down

0 comments on commit c912d21

Please sign in to comment.