MCPcopy Create free account
hub / github.com/apache/arrow / delete_dir_contents

Method delete_dir_contents

python/pyarrow/fs.py:378–382  ·  view source on GitHub ↗
(self, path, missing_dir_ok)

Source from the content-addressed store, hash-verified

376 self.fs.rm(subpath)
377
378 def delete_dir_contents(self, path, missing_dir_ok):
379 if path.strip("/") == "":
380 raise ValueError(
381 "delete_dir_contents called on path '", path, "'")
382 self._delete_dir_contents(path, missing_dir_ok)
383
384 def delete_root_dir_contents(self):
385 self._delete_dir_contents("/", False)

Callers 1

Calls 1

_delete_dir_contentsMethod · 0.95

Tested by 1