HOME/Articles/

pil example Image01 file search (snippet)

Article Outline

Python pil example 'Image01 file search'

Modules used in program:

  • import glob

Python pil example: Image01 file search

import glob
from pathlib import WindowsPath, Path

file = glob.glob("E:\Pictures\\2018\\." + '/**/*.jpg', recursive=True)

for i in file:
    n = Path(i).name
    p = str(Path(i).absolute())
    print(p[:])