Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get files in directory

from pathlib import Path
for txt_path in Path("/path/folder/directory").glob("*.txt"):
  print(txt_path)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #files #directory
ADD COMMENT
Topic
Name
7+6 =