DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get all folders in directory
import os subfolders = [ f.path for f in os.scandir(folder) if f.is_dir() ]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#folders
#directory
ADD COMMENT
Topic
COMMENT
Name
6+3 =
Submit