#include <errno.h>#include <limits.h>#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <sys/types.h>#include <unistd.h>#include <bstrlib.h>#include <atalk/adouble.h>#include <atalk/cnid.h>#include <atalk/directory.h>#include <atalk/util.h>#include <atalk/vfs.h>#include <atalk/volume.h>#include "nad.h"Functions | |
| static void | usage_rmdir (void) |
| static int | is_protected_dir (const char *path, const afpvol_t *vol) |
| Check if path is the volume root or its parent. | |
| static int | rmdir_with_cnid (const char *path, afpvol_t *vol) |
| Remove a single empty directory with CNID and AppleDouble cleanup. | |
| static int | do_rmdir (const char *path, afpvol_t *vol) |
| Remove directory and optionally empty parent directories. | |
| int | nad_rmdir (int argc, char *argv[], AFPObj *obj) |
|
static |
Remove directory and optionally empty parent directories.
When pflag is set, removes empty parent directories working upward from the specified path, stopping at the volume root.
| [in] | path | path of directory to remove |
| [in] | vol | open AFP volume |
|
static |
Check if path is the volume root or its parent.
| int nad_rmdir | ( | int | argc, |
| char * | argv[], | ||
| AFPObj * | obj ) |
|
static |
Remove a single empty directory with CNID and AppleDouble cleanup.
| [in] | path | absolute path of directory to remove |
| [in] | vol | open AFP volume |
|
static |