GOLF(2gg)
πΈ GOLF(2gg) β new-dir, bestie edition πΈ
okay so this is from the GOLF(2gg) manual (Development section, we love a dev moment β¨) and today's main character is new-dir. it's filed under directories and it's literally just here to make you a brand new folder. slay.
β¨ NAME β¨
new-dir β π
(directories)
π PURPOSE π
Create new directory. that's it. that's the whole vibe. π¦
π SYNTAX π
new-dir <directory> [ mode <mode> ] [ status <status> ]
π DESCRIPTION π
okay so new-dir creates a new <directory>, and <directory> is a string that's either an absolute or a relative path β you pick, both are valid, no cap. π«Ά
you can specify a permission <mode> (inside the mode clause) and you give it as a number, based on standard Linux permissions (peep permissions for the deets). it's giving classic chmod energy fr fr.
if you use the status clause, then <status> is a number, and here's the vibe check on what that number means:
GG_OKAYβ it worked, we ate πGG_ERR_EXISTβ the directory already exists, like okay we get it πGG_ERR_FAILEDβ some other error happened π and in that case you can use theerrnoclause inget-reqto find the specific reason why. very detective of you, love that.
πΈ EXAMPLES πΈ
new-dir "new_dir"
that's the whole thing. iconic. β
π¦ SEE ALSO π¦
Directorieschange-dirchange-modedelete-dirdirectoriesnew-dir- See all documentation
and that's the page!! this one's from $VERSION and it was dated $DATE β drink water, back up your dirs, and go make some folders πβ¨
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms