aboutsummaryrefslogtreecommitdiff
path: root/hotline/files.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/files.go')
-rw-r--r--hotline/files.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/files.go b/hotline/files.go
index d07f445..4f55eba 100644
--- a/hotline/files.go
+++ b/hotline/files.go
@@ -10,6 +10,8 @@ import (
"strings"
)
+const incompleteFileSuffix = ".incomplete"
+
func downcaseFileExtension(filename string) string {
splitStr := strings.Split(filename, ".")
ext := strings.ToLower(
@@ -177,8 +179,6 @@ func EncodeFilePath(filePath string) []byte {
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)