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

查看:30
本文介绍了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(或 Extensions to 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天全站免登陆