X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/fca1ebde1d6a552ce6e4e995fc12c73450af218b..aeec10158441af3cef925ca55e531a4d5517d5ec:/hotline/files.go 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)