Answers for "how to get list of directories in the working directory"

19

get list of folders in directory python

import os 
my_list = os.listdir('My_directory')
Posted by: Guest on June-08-2020
0

find only list directories

find . -maxdepth 1 -type d -iname "<regex>" -printf '%f\n'
Posted by: Guest on July-29-2021

Code answers related to "how to get list of directories in the working directory"

Python Answers by Framework

Browse Popular Code Answers by Language