import shutil from fpdf import FPDF import os from os import listdir from os.path import isfile, join import glob import re print("Paste in the directory path :") s=input() all_dir=glob.glob(s) print(all_dir)