python show folder files code example
Example 1: python get all file names in directory
import glob
print(glob.glob("/home/adam/*.txt"))
Example 2: list directory in python
from os import listdir
## Prints the current directory as a list (including file types)
print(os.listdir())