diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-08-24 19:56:14 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-08-24 19:56:14 +0200 |
commit | ed80409f2a904e328d2fcef89296a7e53a15a664 (patch) | |
tree | 2b3bae49bfd0aa9d898f7e8f782e67b66b675b41 /chunk.go | |
parent | df6d5f7e24a290718adf8f068649c3bc61f5eb4d (diff) | |
download | dna-backup-ed80409f2a904e328d2fcef89296a7e53a15a664.tar.gz dna-backup-ed80409f2a904e328d2fcef89296a7e53a15a664.zip |
add extractNewChunks
Diffstat (limited to 'chunk.go')
-rw-r--r-- | chunk.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |