Check how many files in a folder have an extension (Without looping)

Hi, I have a path to a directory and I want to quickly check how many files in that folder have a .pdf extension

How do I do this without looping? Using Linq queries if possible

hello @DEATHFISH

try the below

test12.xaml (4.3 KB)

Regards
Ajay

Hi, @DEATHFISH
Check the below flow hope that helps
BlankProcess (2).zip (11.3 KB)

@DEATHFISH

Try this:

int varPDFFiles = Directory.GetFiles(“FolderPath”,"*.pdf").Count

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.