FTP协议和删除目录 [英] FTP Protocol and Deleting Directories

查看:165
本文介绍了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?

推荐答案

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.

这篇关于FTP协议和删除目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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