]> git.giacomolli.uk - onechat/blobdiff - backup_archive.go
Send terminal images by local path
[onechat] / backup_archive.go
index 9560cd1cb6a5818224e05b37ab1155b5c4f9708a..2ec9352a11eb00e8a9b757f81673614a31f702ef 100644 (file)
@@ -270,7 +270,7 @@ func backupExcluded(name string) bool {
                return true
        }
 
                return true
        }
 
-       if filepath.Base(name) == "lock" {
+       if filepath.Base(name) == "lock" || (first == imageDirName && strings.HasPrefix(filepath.Base(name), ".image-")) {
                return true
        }
 
                return true
        }