mirror of
https://github.com/zhigang1992/fastai.git
synced 2026-04-29 01:54:53 +08:00
Adds comment to read_dir
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user