Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list directory in python

from os import listdir

## Prints the current directory as a list (including file types)
print(os.listdir())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #directory #python
ADD COMMENT
Topic
Name
6+7 =