简体   繁体   English

IIS6服务器不允许ncftpget递归下载文件

[英]IIS6 server not allowing ncftpget to download files recursivelly

I'm working on an old Windows 2003 server with IIS 6.0. 我正在使用IIS 6.0的旧Windows 2003服务器。 There's currently an FTP site in production on that server and I had a need to add another one which I did using a virtual directory. 该服务器上目前有一个正在生产的FTP站点,我需要添加另一个使用虚拟目录进行的操作。 I can manually login, navigate several directories deep and download files one at a time without any errors thrown. 我可以手动登录,深入浏览多个目录并一次下载一个文件,而不会引发任何错误。 However, when I try to download recursively it's only grabbing the files and folders in the root of the remote directory I specify. 但是,当我尝试递归下载时,它只是在我指定的远程目录的根目录中抓取文件和文件夹。 I have this same directory structure running on another Windows 2003 server and I have no problems downloading everything recursively using the same batch script so I'm sure the issue is not with that. 我在另一个Windows 2003服务器上运行了相同的目录结构,并且使用相同的批处理脚本递归下载所有内容时没有问题,因此我确定问题不在于此。 I'm just at a complete loss as to what to even look into next. 我对接下来要研究的内容完全不知所措。 I have verified that the user I'm logging in has windows rights to the entire directory structure, I even enabled anonymous access and set the IUSR account to have full control on the entire directory tree as well, no luck. 我已验证我登录的用户具有整个目录结构的Windows权限,我什至启用了匿名访问并将IUSR帐户设置为对整个目录树也具有完全控制权,没有运气。

I should also mention that there are no error messages returned either. 我还应该提到,也没有返回错误消息。 I have also looked at the log file on the server and no errors shown there either, just the record of each file and folder it actually downloads, no reference to the ones its skipping. 我还查看了服务器上的日志文件,那里也没有显示错误,只是它实际下载的每个文件和文件夹的记录,没有引用其跳过的文件和文件夹。 The client I'm using to download is ncftpget if anyone is curious. 如果有人好奇,我用来下载的客户端是ncftpget。 I'm using this in an application so the client cannot be changed, this same client is being used on another server with the same parameters without issue. 我在应用程序中使用此客户端,因此无法更改客户端,该客户端正在另一台具有相同参数的服务器上使用而没有问题。

IIS supports two different formats of directory listing. IIS支持两种不同的目录列表格式。 MS-DOS and UNIX. MS-DOS和UNIX。 Maybe that's the difference. 也许就是这样。 The ncftpget may have problems with the MS-DOS format. ncftpget可能与MS-DOS格式有关。 Make sure, you have UNIX format selected. 确保已选择UNIX格式。

In your site panel go to FTP > FTP Directory Browsing > Directory Listing Style > UNIX : 在您的站点面板中,转到FTP> FTP目录浏览>目录列表样式> UNIX

在此处输入图片说明

Wasn't able to get ncftpget to download recursively, despite having no issues with it on another server with the same configuration. 尽管在具有相同配置的另一台服务器上没有问题,但无法使ncftpget递归下载。 It ended up being faster to just rewrite the code to use wget instead for the recursive download. 最终,只需重写代码以使用wget代替递归下载,速度会更快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM