def removedirs_p(self):
        """ Like :meth:`removedirs`, but does not raise an exception if the
        directory is not empty or does not exist. """
        with contextlib.suppress(FileExistsError, DirectoryNotEmpty):
            with DirectoryNotEmpty.translate():
                self.removedirs()
        return self
def removedirs_p ( self ) : with contextlib . suppress ( FileExistsError , DirectoryNotEmpty ) : with DirectoryNotEmpty . translate ( ) : self . removedirs ( ) return self
Like :meth:`removedirs`, but does not raise an exception if the
        directory is not empty or does not exist.