Answers for "python list all files of directory in given pattern"

0

python list all files of directory in given pattern

import glob
print(glob.glob("/home/adam/*.txt"))
// output ['/home/adam/file1.txt', '/home/adam/file2.txt', .... ]
Posted by: Guest on June-02-2021

Code answers related to "python list all files of directory in given pattern"

Browse Popular Code Answers by Language