get all files with file path in a directory python code example
Example 1: python get all file names in directory
import glob
print(glob.glob("/home/adam/*.txt"))
Example 2: python get path of current file
import pathlib
pathlib.Path(__file__).parent.absolute()