Posts by cecchinlemos • 1 point
1 post
-
0
votes2
answers25
viewsA: Search for specific directories containing the entire path
Hello you can try as follows dirs = list(filter(rx.search, os.listdir('.'))) [dir for dir in dirs if dir.find('_novo')>=0]