Array List with paths

Hi there,

iam facing a probleme here, were i dont really know how i should solve it.

if have and Dim R() as FolderItem searched for some extensions and the result is now in this array. Can i check the folder depth somehow and delete entries which are too deep?

For example

C:\Test\Readme.txt
C:\Test\example\Readme.txt
C:\Test\example\more\Readme.txt < — this entry should be deleted

A simple “cheat” would be to use CountFields on NativePath to get the depth. Something like this:

static pathSep as string = if( TargetWindows, "\", "/" )
dim depth as integer = R( i ).NativePath.CountFields( pathSep )

Thats a good idea :slight_smile: