I am trying to to get all directories\' name from an FTP server and store them in hierarchical order in a multidimensional list or dict
So for example, a server that
If the server supports the MLSD command, then use the “a directory and its descendants” code from that answer.
MLSD