code: def rmdir(self, parents=False):
          
          if parents:
              os.removedirs(self.path)
          else:
              os.rmdir(self.path)
docs: Removes this directory, provided it is empty.
  
          Use :func:`~rpaths.Path.rmtree` if it might still contain files.
  
          :param parents: If set to True, it will also destroy every empty
              directory above it until an error is encountered.