Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get files in directory

# Basic syntax:
import glob
list_of_files = glob.glob("search_pattern")
# Where:
#	- the search pattern can be any glob pattern, e.g. /usr/bin/*py* to get the
#		list of files in /usr/bin that contain py
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #files #directory
ADD COMMENT
Topic
Name
9+4 =