more updates and renaming

Former-commit-id: 8c194821906b2170df92672fe9dfb9d710640659
This commit is contained in:
Henrique Dias
2017-06-19 17:10:03 +01:00
parent ae61d5b6aa
commit 4829870890
25 changed files with 8783 additions and 546 deletions

View File

@@ -13,7 +13,6 @@ import (
"os"
fm "github.com/hacdias/filemanager"
"github.com/hacdias/filemanager/utils"
)
// checksum calculates the hash of a filemanager. Supports MD5, SHA1, SHA256 and SHA512.
@@ -22,7 +21,7 @@ func checksum(w http.ResponseWriter, r *http.Request, c *fm.Config, i *fm.FileIn
file, err := os.Open(i.Path)
if err != nil {
return utils.ErrorToHTTPCode(err, true), err
return errorToHTTPCode(err, true), err
}
defer file.Close()