diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-08-20 16:31:59 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-08-20 16:31:59 +0200 |
commit | da20d649b3775c4c061ff2aeefe1cea44bac1d19 (patch) | |
tree | a60741160f6959325d73fbcf10c1bbb781809d85 /main.go | |
download | dna-backup-da20d649b3775c4c061ff2aeefe1cea44bac1d19.tar.gz dna-backup-da20d649b3775c4c061ff2aeefe1cea44bac1d19.zip |
initial commit
first working chunking logic
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +package main + +import ( + "os" +) + +func main() { + path := "." + + if len(os.Args) > 1 { + path = os.Args[1] + } + + files := make(chan File) + chunks := make(chan []byte) + go ListFiles(path, files) + go ReadFiles(files, chunks) + DumpChunks(".", chunks) +} |