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)
 
PREVIOUS NEXT
Tagged: #python #files #directory
ADD COMMENT
Topic
Name
1+3 =