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

Method DeleteFile

cpp/src/arrow/filesystem/localfs.cc:607–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607Status LocalFileSystem::DeleteFile(const std::string& path) {
608 RETURN_NOT_OK(ValidatePath(path));
609 ARROW_ASSIGN_OR_RAISE(auto fn, PlatformFilename::FromString(path));
610 return ::arrow::internal::DeleteFile(fn, /*allow_not_found=*/false).status();
611}
612
613Status LocalFileSystem::Move(const std::string& src, const std::string& dest) {
614 RETURN_NOT_OK(ValidatePath(src));

Callers

nothing calls this directly

Calls 3

DeleteFileFunction · 0.85
ValidatePathFunction · 0.70
statusMethod · 0.45

Tested by

no test coverage detected