From ed80409f2a904e328d2fcef89296a7e53a15a664 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 24 Aug 2021 19:56:14 +0200 Subject: add extractNewChunks --- chunk.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chunk.go') diff --git a/chunk.go b/chunk.go index 9f09e55..321f046 100644 --- a/chunk.go +++ b/chunk.go @@ -38,6 +38,10 @@ func (c *Chunk) Reader(repo string) (io.Reader, error) { return nil, &ChunkError{"Uninitialized chunk"} } +func (c *Chunk) isStored() bool { + return c.Id != nil +} + type ChunkError struct { err string } -- cgit v1.2.3