MCPcopy Create free account
hub / github.com/apple/foundationdb / isInPartition

Method isInPartition

bindings/flow/Node.actor.cpp:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool DirectoryLayer::Node::isInPartition(bool includeEmptySubpath) const {
54 ASSERT(loadedMetadata);
55 return exists() && layer == DirectoryLayer::PARTITION_LAYER &&
56 (includeEmptySubpath || targetPath.size() > path.size());
57}
58
59IDirectory::Path DirectoryLayer::Node::getPartitionSubpath() const {
60 return Path(targetPath.begin() + path.size(), targetPath.end());

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected