(
        self,
        path: PATH_TYPES,
        recurse: bool = False,
        force: bool = False,
        ignore_errors: bool = False,
        dry_run: bool = False,
    )
return 0
Remove the directory. If recurse is True, allow removing empty children.

        If force is true, remove contents destructively.
Remove the directory. If recurse is True, allow removing empty children.
Remove the directory . If recurse is True allow removing empty children .
def rmdir(
        self,
        path: PATH_TYPES,
        recurse: bool = False,
        force: bool = False,
        ignore_errors: bool = False,
        dry_run: bool = False,
    ) -> int:
        """
        Remove the directory. If recurse is True, allow removing empty children.

        If force is true, remove contents destructively.
        """
        if not isinstance(path, self.PATH_BACKEND):
            path = self.PATH_BACKEND(path)
        log_prefix = "[DRY RUN] " if dry_run else ""
        logger.info(f"{log_prefix}Removing file: {path!s}")
        if not dry_run:
            path.rmdir()
        return 0
def rmdir ( self , path : PATH_TYPES , recurse : bool = False , force : bool = False , ignore_errors : bool = False , dry_run : bool = False , ) -> int : if not isinstance ( path , self . PATH_BACKEND ) : path = self . PATH_BACKEND ( path ) log_prefix = "[DRY RUN] " if dry_run else "" logger . info ( f"{log_prefix}Removing file: {path!s}" ) if not dry_run : path . rmdir ( ) return 0