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
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def track_file(file, base_dir):
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
files = glob.glob('{}/**'.format(base_dir), recursive=True)
files = [pathlib.Path(f) for f in files if pathlib.Path(f).is_file()]