Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for no FTP files
Message
From
08/12/2014 04:24:07
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Check for no FTP files
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01611973
Message ID:
01611973
Views:
38
Hi

any thoughts on the best way to check for no files in an ftp folder ?

I've got this
 FtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftpaddress);
 //List all the files in the directory
 request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
I think I can check for file = 0 but I wondered if there as anything else.

Thanks

Nick


Update the FTP site returns "total 0"
Next
Reply
Map
View

Click here to load this message in the networking platform