检查它是文件夹还是文件 [英] check whether it is a folder or file

查看:70
本文介绍了检查它是文件夹还是文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我开发了一个小应用程序,通过它我们可以上传和下载ftp中的文件。连接到ftp时,我需要以ftp的大小显示所有文件和文件夹。对于我显示大小的文件,但我怎么能对文件夹做同样的事情?或者有没有办法找到它是文件还是文件夹?

我用流来读取文件和文件夹名称。请帮忙。在此先感谢

Hi,
I have developed a small application by which we can upload and download files in ftp. While Connecting to ftp i need to display all the files and folders in ftp with its size. For files i have displayed size but how can i do the same for folder? or is there any way to find whether it is file or folder?
I used stream to read the file and folder names. Pls help. Thanks in advance

推荐答案

您好,



我认为以下是您正在寻找的解决方案的链接



http://stackoverflow.com/questions/3298922/how-to-list-directory-contents-with-ftp-in-c

http://msdn.microsoft.com/en-us/library/ms229716.aspx [ ^ ]


这篇关于检查它是文件夹还是文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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