Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list files in current directory

import os

files = os.listdir('.')
print(files)
for file in files:
  # do something
  
 
PREVIOUS NEXT
Tagged: #python #list #files #current #directory
ADD COMMENT
Topic
Name
7+1 =