仅限于FTP目录中的文件名 [英] WGET only the file names in an FTP directory
本文介绍了仅限于FTP目录中的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在ftp目录下创建一个可用的动态文件列表。我认为wget可以帮助这个,但我不确定如何......所以我的问题是:什么是使用wget从ftp目录中检索文件名的语法?谢谢你的帮助! -Dom
I am attempting to create a dynamic list of files available in an ftp directory. I assume wget can help with this but I'm not really sure how...so my question is: What is the syntax for retrieving file names from an ftp directory using wget? Thanks for your help! -Dom
推荐答案
只要执行
Just execute
wget --no-remove-listing ftp://myftpserver/ftpdirectory/
这会生成两个文件: .listing
(这就是你要找的)和 index.html
这是html版本的上市文件。
This will generate two files: .listing
(this is what you are looking for) and index.html
which is the html version of the listing file.
这篇关于仅限于FTP目录中的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文