GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

🌸 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 the errno clause in get-req to find the specific reason why. very detective of you, love that.

🌸 EXAMPLES 🌸

new-dir "new_dir"

that's the whole thing. iconic. ⭐


πŸ¦‹ SEE ALSO πŸ¦‹

  • Directories
  • change-dir
  • change-mode
  • delete-dir
  • directories
  • new-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