GFS_RMDIR(3)

πŸ’– GFS_RMDIR(3) β€” the Gfarm manual, bestie edition πŸ’–

okay so this is a page from the Gfarm manual, section 3 (that's the library-functions girlies 🫢), and today we're talking about gfs_rmdir. yes, it does exactly what you think. no cap.


✨ NAME ✨

gfs_rmdir β€” delete a directory πŸ’…


🌸 SYNOPSIS 🌸

#include <gfarm/gfarm.h>

gfarm_error_t gfs_rmdir(const char * gfarm_url);

like. look at her. one header, one function, one const char *. iconic behavior honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

gfs_rmdir() deletes a directory whose name is the string specified by gfarm_url.

and bestie. listen. the directory must be empty. that's not a suggestion, that's the vibe check, and if it fails the vibe check it will simply not go. πŸ™ˆ


πŸ‘‘ RETURN VALUES πŸ‘‘

okay so this function returns a gfarm_error_t and here's the whole roster, no skipping, we don't do that here:

  • GFARM_ERR_NO_ERROR β€” the function terminated successfully. slay. she ate. πŸŽ€
  • GFARM_ERR_NO_MEMORY β€” insufficient memory was available. the computer is going through it rn 😭
  • GFARM_ERR_PERMISSION_DENIED β€” gfarm_url points outside your accessible address space. not yours, not your business πŸ’€
  • GFARM_ERR_DIRECTORY_NOT_EMPTY β€” directory is not empty. told you bestie. empty it first. 🧹
  • GFARM_ERR_NO_SUCH_OBJECT β€” directory does not exist. she's not there. she was never there. 🌈
  • GFARM_ERR_NOT_A_DIRECTORY β€” a component of the path prefix is not a directory. something in the path is giving… not a directory. πŸ™ˆ
  • Others β€” an error except the above occurred. the reason is shown by gfarm_error_string(3). so go read that one, iykyk. πŸ’œ
fr fr: if you get anything that isn't GFARM_ERR_NO_ERROR, go hit up gfarm_error_string(3) and it'll tell you what's up.

πŸ’« SEE ALSO πŸ’«

gfarm_error_string(3)


that's the whole page bestie, mwah πŸ’–

with love from the Gfarm girlies, dated 23 Jun 2019 β€” stay empty, stay deletable, stay slaying βœ¨πŸ‘‘πŸ’