listdirs()
Get list of directories of a specified path
listdirs(path, full_path = false)
path
(string) — Path to the directoryfull_path
(boolean, optional) — If full_path
is true
then the result will be prefixed with path
. The default value is false
array
— Returns the list of directories
import fileio
dirs = listdirs("/path/to/dir")