如何获取FTP服务器上文件的文件大小? [英] How to Get File Size of Files on FTP Server?
本文介绍了如何获取FTP服务器上文件的文件大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个FTP服务器上的所有文件(和相关文件大小)的列表。我可以使用CodeIgniter的FTP类获取文件列表,但不知道如何获取文件大小。我如何获得文件大小?谢谢。
I need a list of all the files (and associated file sizes) on an FTP server. I can get a list of files using CodeIgniter’s FTP class, but no idea how to get the file size. How do I get the file sizes? Thanks.
推荐答案
我对CodeIgniter的FTP类一无所知,但这又如何?
I know nothing about CodeIgniter's FTP class, but what about this?
http://www.php.net/manual /en/function.ftp-rawlist.php
我假设FTP类'list_files()方法不提供此信息。这是正确的吗?
I assume that the FTP class' list_files() method doesn't provide this info. Is that correct?
这篇关于如何获取FTP服务器上文件的文件大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文