This commit is contained in:
7x11x13 2024-08-18 11:56:58 -04:00
parent 6dde8e930b
commit 9732b538db

View File

@ -262,6 +262,7 @@ def clean_up_locks() -> None:
atexit.register(clean_up_locks)
def get_filelock(path: Union[pathlib.Path, str], timeout: int = 10) -> filelock.BaseFileLock:
path = pathlib.Path(path)
path.parent.mkdir(parents=True, exist_ok=True)