"strings"
)
+const incompleteFileSuffix = ".incomplete"
+
func downcaseFileExtension(filename string) string {
splitStr := strings.Split(filename, ".")
ext := strings.ToLower(
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)