Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os.listdir specific extension

import os
for file in os.listdir("/mydir"):
    if file.endswith(".txt"):
        print(os.path.join("/mydir", file))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #specific #extension
ADD COMMENT
Topic
Name
7+8 =