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