Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for no FTP files
Message
De
08/12/2014 04:24:07
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Check for no FTP files
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01611973
Message ID:
01611973
Vues:
36
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"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform