I am trying to find the full path of a folder from just the name of the folder.
The folder in question is advdupe2 folder that is usually situated in \SteamLibrary\steamapps\common\GarrysMod\garrysmod\data\advdupe2 but people might have the SteamLibrary folder in different locations for example i have it on D:\steam\SteamLibrary\steamapps\common\GarrysMod\garrysmod\data\advdupe2 and it is by default on C:\Program Files\Steam\steamapps\.
I have tried searching for this everywhere but i can find no references to this.
I looking for something like string folderPath = findFolder(folderName);