Adds comment to read_dir

This commit is contained in:
Nisreen Al-Basha
2018-04-28 20:45:40 -04:00
parent 2eb29a3ed6
commit 1a07c5835b

View File

@@ -52,6 +52,7 @@ def resize_imgs(fnames, targ, path, new_path):
return os.path.join(path,new_path,str(targ))
def read_dir(path, folder):
""" Returns a list of relative file paths to `path` for all files within `folder` """
full_path = os.path.join(path, folder)
fnames = glob(f"{full_path}/*.*")
if any(fnames):