如何检查FTP服务器中的可用空间? [英] How to check free space in a FTP Server?
问题描述
我正在尝试开发一个GUI应用程序,该应用程序显示FTP服务器的可用空间.FTP服务器可以是linux或Windows.有什么通用的方法.(除了预定的工作)
在Windows FTP IIS中,作为LIST命令的一部分,有一个获取空间的选项.在ubuntu中找到了一种使用cron作业的方法.除了使用cron作业之外,还有其他方法吗?
没有通用的方法来检查FTP服务器上的磁盘空间.恐怕大多数FTP服务器根本不提供此信息.
不同的FTP服务器支持不同的专有功能以提供磁盘空间:
-
有一个
I am trying to develop a GUI app, that displays freespace of FTP server. FTP Server can be linux or windows. Is there any common method. (other than scheduled job)
In Windows FTP IIS, there is an option to get space as part of LIST command. In ubuntu found one method using cron jobs. Is there any other method than using cron jobs??
解决方案There's no generic way to check a disk space on FTP server. I'm afraid that majority of FTP servers do not provide this information at all.
Different FTP servers supports different proprietary features to provide disk space:
There's a draft for
AVBL
command, which is supported for example by Serv-U FTP server:IIS can optionally include free space information in a directory listing, as you already know:
Is it possible to determine the amount of free space on a remote FTP server without using scripts?WS_FTP has
XQUOTA
command:XQUOTA 213-File and disk usage File count: 3 File limit: 10000 Disk usage: 1532791 Disk limit: 2048000 213 File and disk usage end
My GUI FTP client, WinSCP, supports all these ways to check the space available. So you can test it against your server to see, what, if any, commands and syntax it would use against your servers.
这篇关于如何检查FTP服务器中的可用空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!