base dir reverted back to str path

This commit is contained in:
ahmadbilalkhalid 2020-01-05 17:56:42 +05:00
parent 180f6f4989
commit 6847a0d323

View file

@ -68,7 +68,7 @@ def track_file(file, base_dir):
def main(debug=False): def main(debug=False):
base_dir = pathlib.Path(settings['storage']['file_dir']) base_dir = settings['storage']['file_dir']
# Recursively Get All Files and Folder below BASE_DIR # Recursively Get All Files and Folder below BASE_DIR
files = glob.glob('{}/**'.format(base_dir), recursive=True) files = glob.glob('{}/**'.format(base_dir), recursive=True)
files = [pathlib.Path(f) for f in files if pathlib.Path(f).is_file()] files = [pathlib.Path(f) for f in files if pathlib.Path(f).is_file()]