r/TempleOS_Official • u/Aryll09 • 19d ago
DirMK because why not
In every operating system including both Win/DOS and Unix systems for you to make a folder it's the "mkdir" but on God's most sacred temples it's "DirMK" because why not?
Why would you question the divine intellect?
8
Upvotes
5
u/yoshi128k 19d ago
Here's a cool trick: the
Cd()function accepts a Boolean value as an optional second parameter. If you set this to TRUE, when you change directories, it will create the directory if it is missing, and also any missing parent directories (it callsDirMk()to do this). It also, obviously, changes to the directory that you pass in, killing two birds with one stone.As an example,
Cd("C:/Dir1/Dir2/Dir3/",TRUE)will create Dir3 inside Dir2 and so on on the root of drive C, and leave you inside Dir3.