WGET 仅 FTP 目录中的文件名 [英] WGET only the file names in an FTP directory

查看:39
本文介绍了WGET 仅 FTP 目录中的文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建 ftp 目录中可用文件的动态列表.我认为 wget 可以帮助解决这个问题,但我不确定如何......所以我的问题是:

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:

使用 wget 从 ftp 目录检索文件名的语法是什么?

What is the syntax for retrieving file names from an ftp directory using wget?

推荐答案

执行即可

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.

这篇关于WGET 仅 FTP 目录中的文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆