]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/cmd/nncp-bundle/main.go
Ability to create and deal with .seen files after tossing
[nncp.git] / src / cypherpunks.ru / nncp / cmd / nncp-bundle / main.go
index 36c9cc99ec6f34704abda611ab73b7814f87a23b..210a14024dfe464669bf4ae5a6a65a8fdbd6c803 100644 (file)
@@ -264,6 +264,10 @@ func main() {
                                ctx.LogD("nncp-bundle", sds, "Packet already exists")
                                continue
                        }
+                       if _, err = os.Stat(dstPath + nncp.SeenPostfix); err == nil || !os.IsNotExist(err) {
+                               ctx.LogD("nncp-bundle", sds, "Packet already exists")
+                               continue
+                       }
                        if *doCheck {
                                tmp, err := ctx.NewTmpFileWHash()
                                if err != nil {