glob.glob(recursive=True) search (#917)
This commit is contained in:
parent
c8e51812a5
commit
9c0efdde9f
|
|
@ -110,7 +110,7 @@ class LoadImages: # for inference
|
||||||
p = str(Path(path)) # os-agnostic
|
p = str(Path(path)) # os-agnostic
|
||||||
p = os.path.abspath(p) # absolute path
|
p = os.path.abspath(p) # absolute path
|
||||||
if '*' in p:
|
if '*' in p:
|
||||||
files = sorted(glob.glob(p)) # glob
|
files = sorted(glob.glob(p, recursive=True)) # glob
|
||||||
elif os.path.isdir(p):
|
elif os.path.isdir(p):
|
||||||
files = sorted(glob.glob(os.path.join(p, '*.*'))) # dir
|
files = sorted(glob.glob(os.path.join(p, '*.*'))) # dir
|
||||||
elif os.path.isfile(p):
|
elif os.path.isfile(p):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue