Fix get_file_lock
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
"""Python Soundcloud Music Downloader."""
|
||||
__version__ = "v2.9.3"
|
||||
__version__ = "v2.9.4"
|
||||
|
||||
@@ -155,6 +155,7 @@ atexit.register(clean_up_locks)
|
||||
|
||||
|
||||
def get_filelock(path: pathlib.Path, timeout: int = 10):
|
||||
path = pathlib.Path(path)
|
||||
path = path.resolve()
|
||||
file_lock_dirs.append(path.parent)
|
||||
lock_path = str(path) + ".scdl.lock"
|
||||
|
||||
Reference in New Issue
Block a user