]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/files.go
Backfill tests and clean up
[rbdr/mobius] / hotline / files.go
index d07f4455ebe188774a99164a5b033f55c141de7b..4f55eba13f29946a2cec4feed35040271e4276f2 100644 (file)
@@ -10,6 +10,8 @@ import (
        "strings"
 )
 
        "strings"
 )
 
+const incompleteFileSuffix = ".incomplete"
+
 func downcaseFileExtension(filename string) string {
        splitStr := strings.Split(filename, ".")
        ext := strings.ToLower(
 func downcaseFileExtension(filename string) string {
        splitStr := strings.Split(filename, ".")
        ext := strings.ToLower(
@@ -177,8 +179,6 @@ func EncodeFilePath(filePath string) []byte {
        return bytes
 }
 
        return bytes
 }
 
-const incompleteFileSuffix = ".incomplete"
-
 // effectiveFile wraps os.Open to check for the presence of a partial file transfer as a fallback
 func effectiveFile(filePath string) (*os.File, error) {
        file, err := os.Open(filePath)
 // effectiveFile wraps os.Open to check for the presence of a partial file transfer as a fallback
 func effectiveFile(filePath string) (*os.File, error) {
        file, err := os.Open(filePath)