diff --git a/mailcom/parse.py b/mailcom/parse.py index f2c57b1..0a4917d 100644 --- a/mailcom/parse.py +++ b/mailcom/parse.py @@ -91,12 +91,12 @@ def init_transformers(): return ner_recognizer -def check_dir(path: Path): +def check_dir(path: str): # check if directory is there - return path.exists() + return os.path.exists(path) -def make_dir(path: Path): +def make_dir(path: str: # make directory at path os.makedirs(path + "/")