Traversing FTP listing

前端 未结 5 1741
广开言路
广开言路 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:10

    If we are using Python look at:

    http://docs.python.org/library/os.path.html (os.path.walk)

    If there already is a good module for this, don't reinvent the wheel. Can't believe the post two spots above got two ups, anyway, enjoy.

提交回复
热议问题