Traversing FTP listing

前端 未结 5 1738
广开言路
广开言路 2020-12-18 03:39

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

5条回答
  •  情歌与酒
    2020-12-18 04:25

    If the server supports the MLSD command, then use the “a directory and its descendants” code from that answer.

提交回复
热议问题