DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+6 =
Submit