Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list all files in folder python

import os
 arr = next(os.walk('.'))[2]
 print(arr)
 
 >>> ['5bs_Turismo1.pdf', '5bs_Turismo1.pptx', 'esperienza.txt']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #files #folder #python
ADD COMMENT
Topic
Name
6+9 =