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

Method DeleteFile

cpp/src/arrow/filesystem/hdfs.cc:403–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 }
402
403 Status DeleteFile(const std::string& path) {
404 if (IsDirectory(path)) {
405 return Status::IOError("path is a directory");
406 }
407 RETURN_NOT_OK(Delete(path, /*recursive=*/false));
408 return Status::OK();
409 }
410
411 Status Delete(const std::string& path, bool recursive) {
412 int ret = driver_->Delete(client_, path.c_str(), static_cast<int>(recursive));

Callers

nothing calls this directly

Calls 3

IOErrorFunction · 0.85
IsDirectoryFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected