aboutsummaryrefslogtreecommitdiff
path: root/chunk.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-08-24 19:56:14 +0200
committern-peugnet <n.peugnet@free.fr>2021-08-24 19:56:14 +0200
commited80409f2a904e328d2fcef89296a7e53a15a664 (patch)
tree2b3bae49bfd0aa9d898f7e8f782e67b66b675b41 /chunk.go
parentdf6d5f7e24a290718adf8f068649c3bc61f5eb4d (diff)
downloaddna-backup-ed80409f2a904e328d2fcef89296a7e53a15a664.tar.gz
dna-backup-ed80409f2a904e328d2fcef89296a7e53a15a664.zip
add extractNewChunks
Diffstat (limited to 'chunk.go')
-rw-r--r--chunk.go4
1 files changed, 4 insertions, 0 deletions
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
}