Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: count files without hidden files

var nonHiddenFiles = allFiles.Where(_ => !_.Name.StartsWith('.'));
nbrFilesInFTP = nonHiddenFiles.Count();

(untested)
matoui

Count files without hidden files

Hello,

I'd like to count numbers of files without hidden files in the server before to download them.
I use version 5.17.7 with C#
I must use the mask here?
var allFiles = session.EnumerateRemoteFiles(dossierDepot.FullName, null, EnumerationOptions.AllDirectories);
nbrFilesInFTP = allFiles.Count();

thanks