]> Cypherpunks.ru repositories - goredo.git/blobdiff - cleanup.go
Collision resistant .log-rec extension
[goredo.git] / cleanup.go
index dff0ee0a64fb217bbe03a9bc465388fbd187c147..8c757aeebcf4c58d2b1e96ba5e93fa10e0c4b271 100644 (file)
@@ -66,7 +66,7 @@ func redoDirClean(root, what string) error {
                        switch what {
                        case CleanupLog:
                                if strings.HasSuffix(fi.Name(), LogSuffix) ||
-                                       strings.HasSuffix(fi.Name(), LogSuffix+DepSuffix) {
+                                       strings.HasSuffix(fi.Name(), LogRecSuffix) {
                                        fmt.Println(pth)
                                        if !*DryRun {
                                                if err = os.Remove(pth); err != nil {