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

Method delete_file

python/pyarrow/fs.py:387–392  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

385 self._delete_dir_contents("/", False)
386
387 def delete_file(self, path):
388 # fs.rm correctly raises IsADirectoryError when `path` is a directory
389 # instead of a file and `recursive` is not set to True
390 if not self.fs.exists(path):
391 raise FileNotFoundError(path)
392 self.fs.rm(path)
393
394 def move(self, src, dest):
395 self.fs.mv(src, dest, recursive=True)

Callers 1

test_delete_fileMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_delete_fileMethod · 0.36