Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os.listdir in python

#import libs
import os

#set path of file or website on which listdir is to be applied
path='/users/desktop/dummy'

#Print all data in path

for file in os.listdir(path):
  print(file)
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
7+7 =