Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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', .... ]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #list #files #directory #pattern
ADD COMMENT
Topic
Name
8+3 =