That, is something that can happen with the Skial app
Using the Steam directory seems a bit flawed as you can see
Since games can be installed elsewhere (Also since when Steam installs games here? Never right?)
This directory was the default.
How could it do that?
First the directory specified should look like this (Or smiliar Depending on install location and OS)
C:\SteamLibrary\steamapps\common\Team Fortress 2
Example :
Detect if the directory has a valid gameinfo.txt (cd inside tf/ then check if there is a valid gameinfo.txt)
If yes download maps inside tf/download/maps
If no It's a invalid TF2 directory
No tf directory? That's a invalid TF2 directory
or / with this
With the specified directory
Detect a valid tf_win64.exe (The correct executable file depending on the Operating system here, it's Windows)
If yes cd into tf/custom/maps and download maps
If no Probably an invalid TF2 directory (check for tf.exe (Adapt depending on OS))
If tf.exe is found suppose a valid tf directory and cd into tf/download/maps then download maps
If tf.exe isn't found it's an invalid TF2 directory
If we can't cd into tf/ It's an invalid TF2 directory even if tf.exe is found
(PS : if someone replicates that, it's their own fault. It's pretty damn specific)
Also as an added bonus
Add a "Reset" button to reset configuration (File path and choosen maps) It would be very useful when you reinstall TF2 elsewhere and you don't want the same maps, or when you break your config and cannot find where is your TF2 install and cannot be bothered to find it :|
All of that is for Windows !
Change accordingly !