I hope this question is not a duplicate, but I could not find any other question which answered my specific question, which is:
I have the following folder structure (just an example):
I just want to have the path from the directories where the AB folder is, i.e. A01/122, A03/124, A04/125.
I tried it likes this, but I'm stuck right now:
SetDirectory["samefolder"] folders = Select[FileNames, DirectoryQ[#] &]
which gives me the names of the folder A01 to A05, but that's not really what I want. I only want the names of the folders, where the AB exists (A01/122 and so on).
I appreciate any help on this :)