Does it work without SetRecursive call? If that is not the issue, can you start with an example which is known to work and gradually modify it to suit your needs?
I forgot to mention: it’s working if I launch my software on a folder containing directly the disoms.
For example:
parentFolder/
childFolder/
dicomFile01
dicomFile02
If I launch my app with childFolder has the directory, the series is read (I have the series UID). If I launch my app with parentFolder, I expected to have the same result, but I have nothing (except the warning telling me that no series were found).
I did the test with and without SetRecursive call and the same results as above appear.
I agree this is a bug. I am not convinced this lie in GDCM codebase. I would have assumed this was in GDCMSeriesFileNames. Anyway feel free to create an issue and assigned it to me. Thanks for the report.