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

Method DeleteDir

cpp/src/arrow/filesystem/gcsfs.cc:516–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 }
515
516 Status DeleteDir(const GcsPath& p, const io::IOContext& io_context) {
517 RETURN_NOT_OK(DeleteDirContents(p, /*missing_dir_ok=*/false, io_context));
518 if (!p.object.empty()) {
519 auto canonical = std::string(internal::EnsureTrailingSlash(p.object));
520 return internal::ToArrowStatus(client_.DeleteObject(p.bucket, canonical));
521 }
522 return internal::ToArrowStatus(client_.DeleteBucket(p.bucket));
523 }
524
525 Status DeleteDirContents(const GcsPath& p, bool missing_dir_ok,
526 const io::IOContext& io_context) {

Callers

nothing calls this directly

Calls 5

EnsureTrailingSlashFunction · 0.85
DeleteObjectMethod · 0.80
DeleteDirContentsFunction · 0.70
ToArrowStatusFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected