FTP协议和删除目录
Filezilla 花了很长时间才从我的网站中删除嵌套目录结构。为什么它必须切换到每个子目录并删除文件,而不是一次性删除整个最顶层的目录?删除文件是 FTP RFC 中唯一支持的命令吗?递归目录删除是否必须由客户端实现?
Filezilla is taking forever to delete a nested directory structure from my website. Why does it have to change into each sub directory and delete files instead of just removing the whole top most directory in one go? Is removing a file the only supported command in the FTP RFC and does recursive directory removal have to be implemented by the client?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
FTP RFC(或 FTP 扩展 RFC)没有定义任何递归删除目录的命令。您只有 4.1.3 节中定义的 DELE 命令来删除文件,而使用 FTP 删除整个树的方法是递归删除文件和文件夹 (RMD ),一一进行。
The FTP RFC (or the Extensions to FTP RFC) does not define any command to recursively delete a directory. You only have the DELE command, defined in section 4.1.3 to delete a file and the way to delete an entire tree using FTP is to recursively delete files and folders (RMD), one by one.
嗯,不幸的是,是的,根据 RFC 959 和更多 友好列表
Well, unfortunately yes, as per RFC 959 and a more friendly list
我最近遇到了这个问题,但我使用 puTTY 删除嵌套目录。
I recently had this problem, but i used puTTY to delete nested directories.
rm -rf dir_name
to delete the directory