So I'm trying to have the name of all folder in a folder, then remove the file path of the name so I can get the name alone. It gives me an index error, but it still works great so it doesn't really matter there. The thing is, this was one part of a bigger flow. And when this error get thrown, it stops the rest of the flow, which is a problem there.


How to fix this if possible please ?