read file names from directory python code example
Example 1: python get all file names in directory
import glob
print(glob.glob("/home/adam/*.txt"))
Example 2: python read file list from directory
from shutil import copyfile
copyfile(src, dst)
import glob
print(glob.glob("/home/adam/*.txt"))
from shutil import copyfile
copyfile(src, dst)