DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get the name of a file using os
>>> list_of_names_in_directory = os.listdir('path/of/directory')
PREVIOUS
NEXT
Tagged:
#file
#os
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit