GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– GOLF(2gg) β€” bestie edition πŸ’–

okay so you found the GOLF(2gg) page, Development section, and we're about to make directory deletion make sense. no cap. this is the whole vibe, fr fr.


✨ NAME ✨

delete-dir - (directories)


πŸŽ€ PURPOSE πŸŽ€

Delete directory. that's it. that's the whole job. iconic behavior honestly.


🌸 SYNTAX 🌸

delete-dir <directory> [ status <status> ]

πŸ¦‹ DESCRIPTION πŸ¦‹

so delete-dir will delete <directory>, and <directory> is a string that can be an absolute path or a relative path. both are valid, bestie. it's giving flexible.

if you use the status clause, then the number <status> means one of these three things:

  • GG_OKAY if it succeeded πŸ’…
  • GG_ERR_EXIST if the directory is not empty πŸ™ˆ
  • GG_ERR_FAILED for other errors, and in that case you can use the errno clause in get-req to find the specific reason why πŸ‘‘
lowkey important: those status codes are exact. don't be out here guessing.

🌈 EXAMPLES 🌈

delete-dir "/home/user/some_dir"

πŸ’œ SEE ALSO πŸ’œ

  • Directories
  • change-dir
  • change-mode
  • delete-dir
  • directories
  • new-dir
  • See all documentation

this page is from $VERSION, dated $DATE, and it lives under GOLF(2gg). stay slay, go delete a directory responsibly, and remember: the manual said it, so it's canon. πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from