the whole snippet is supposed to cat basePath and subPath with a / in between them, but the else clause actually just cats basePath with subPath minus the first letter, which explains the corruption I saw in the the 32-bit build fix PR:
Module Manager: Failed to scan modules files in directory '/home/casey/Repos/Torque2D-1/editor/rojectManager'
Whole function was a bit repetitive and unclear, and whitespace was a little rough, so I went through and rewrote / reformatted it to be simpler and commented it thoroughly.
As usual, if you found this valuable, please consider applying the hacktoberfest-accepted label to the PR.
Figured out why console is broken on linux, the issue was inside the recurseDumpDirectories function.
Bug was in this source:
the whole snippet is supposed to cat
basePath
andsubPath
with a/
in between them, but the else clause actually just catsbasePath
withsubPath
minus the first letter, which explains the corruption I saw in the the 32-bit build fix PR:Whole function was a bit repetitive and unclear, and whitespace was a little rough, so I went through and rewrote / reformatted it to be simpler and commented it thoroughly.
As usual, if you found this valuable, please consider applying the
hacktoberfest-accepted
label to the PR.Thanks!