rmdir

    rmdir command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    4 days ago
    Downloads
    129

    #rmdir

    Development candidate: cli/rmdir@0.2.5. Publication is separate; latest.json records the uploaded coordinates.

    Remove empty directories for MoonX.

    moonx cli/rmdir@0.2.5 [-p] [-I] [-v] DIRECTORY...

    #Supported scope

    Remove multiple empty directories, optionally walking upward through parents.

    #Options

    OptionDescription
    -p, --parentsRemove empty parents after the operand.
    -v, --verboseShow removals.
    -I, --ignore-fail-on-non-emptyIgnore failures caused only by nonempty directories.
    --help / --versionShow help / package version.

    #Extension and diagnostic contract

    -p, --parents remove empty parents, stopping at the first failure -v, --verbose report each removal attempt before it runs --ignore-fail-on-non-empty suppress only failures attributable to nonemptiness -I is a project short alias of --ignore-fail-on-non-empty, not a GNU option.

    See the finite option and diagnostic profile for the scope and upstream distinction.

    #Argument and exit-status contract

    Ordinary option/operand errors exit 1; documented capability refusals retain their own status.

    #Limitations

    POSIX directory symlinks fail without removing their referents. Windows follows the public removal result: a directory junction can be removed successfully while its nonempty referent remains intact. This platform behavior is tested separately from the GNU/POSIX link contract.

    • Nonempty trees are not removed. Parent traversal stops before cwd, its ancestors or a root; the explicit operand is still attempted.

    #Examples

    moonx cli/rmdir@0.2.5 empty-dir moonx cli/rmdir@0.2.5 -p empty-parent/empty-child