read every file in folder python code example
Example 1: for every file in the folder do python
for file in os.listdir(inputdir):
Example 2: read all files in folder python
import glob
print(glob.glob("/home/adam/*.txt"))
for file in os.listdir(inputdir):
import glob
print(glob.glob("/home/adam/*.txt"))