Recorrer directorios y subdirectorios

Buenas tardes, estoy intentando recorrer a través de múltiples directorios buscando archivos que en su nombre tengan ciertas coincidencias(ej:“CV”, “Curriculum”, “vitae”). He logrado hacerlo, pero en un directorio fijo y establecido. Lo que busco es hacer esto mismo pero a través de múltiples carpetas, las cuales pueden tener subcarpetas y así sucesivamente.

Hi @Gustavo_Ogueda_Reyes
Directory.GetFiles(FolderPath)

Thanks
ashwin S

Hi @AshwinS2 i already did that, but what happens when the directory got inside another subdirectory? I need to search in every directory

hi @Gustavo_Ogueda_Reyes
try this

Directory.GetDirectories(folderp@th);

@Gustavo_Ogueda_Reyes

Welcome to our uipath community.

Try below expression and it will give all files under parent folder and it’s child folders also.

 getFiles [] = Directory.GetFiles("Parent Folderpath", searchoption.AllDirectories)
2 Likes

Thanks a lot @lakshman this worked like a charm and solved my issue

1 Like

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