getRefs on objects

This commit is contained in:
2024-03-17 23:08:57 +01:00
parent 476904b5aa
commit 0b2040603e
6 changed files with 31 additions and 0 deletions

View File

@@ -68,6 +68,12 @@ public:
/// List of the chunks in file
/// Normal file has normal chunks as its contents, for Directory it's empty, Symlink has a chunk with its target path
const std::map<size_t, idType> chunks;
const std::vector<idType> &getRefs() const override;
private:
void makeChunksList() const;
mutable std::optional<std::vector<idType>> chunksList{std::nullopt};
};