FTP协议和删除目录

发布于 2024-08-14 21:31:44 字数 117 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

貪欢 2024-08-21 21:31:44

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.

简单爱 2024-08-21 21:31:44

嗯,不幸的是,是的,根据 RFC 959 和更多 友好列表

Well, unfortunately yes, as per RFC 959 and a more friendly list

爱的那么颓废 2024-08-21 21:31:44

我最近遇到了这个问题,但我使用 puTTY 删除嵌套目录。

  1. 使用您的 FTP 用户名/密码进行
  2. 连接 连接后,使用 rm -rf dir_name 删除目录

I recently had this problem, but i used puTTY to delete nested directories.

  1. connect using your FTP username/password
  2. once connected, use rm -rf dir_name to delete the directory
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文