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

Method parent

cpp/src/arrow/filesystem/s3fs.cc:522–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520 }
521
522 S3Path parent() const {
523 DCHECK(!key_parts.empty());
524 auto parent = S3Path{"", bucket, "", key_parts};
525 parent.key_parts.pop_back();
526 parent.key = internal::JoinAbstractPath(parent.key_parts);
527 parent.full_path = parent.bucket + kSep + parent.key;
528 return parent;
529 }
530
531 bool has_parent() const { return !key.empty(); }
532

Callers 15

run-test.rbFile · 0.45
test_parentMethod · 0.45
garrow_buffer_get_parentFunction · 0.45
CopyNonOwnedToMethod · 0.45
ViewBufferToMethod · 0.45
FromBufferMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
EnsureParentExistsMethod · 0.45
CreateDirMethod · 0.45
TEST_FFunction · 0.45
FromNodeMethod · 0.45

Calls 2

JoinAbstractPathFunction · 0.85
emptyMethod · 0.45

Tested by 12

test_parentMethod · 0.36
CopyNonOwnedToMethod · 0.36
ViewBufferToMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
ComputeLevelInfoFunction · 0.36
detect_versionsMethod · 0.36
setupMethod · 0.36
setupMethod · 0.36