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

Method DeleteFile

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

Source from the content-addressed store, hash-verified

224 }
225
226 Status DeleteFile(const std::string& path) {
227 if (IsDirectory(path)) {
228 return Status::IOError("path is a directory");
229 }
230 RETURN_NOT_OK(client_->Delete(path));
231 return Status::OK();
232 }
233
234 Status Move(const std::string& src, const std::string& dest) {
235 auto st = client_->Rename(src, dest);

Callers

nothing calls this directly

Calls 4

IOErrorFunction · 0.85
IsDirectoryFunction · 0.70
OKFunction · 0.50
DeleteMethod · 0.45

Tested by

no test coverage detected