diff options
author | Wolfy-J <[email protected]> | 2018-06-13 14:06:13 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 14:06:13 +0300 |
commit | c8e8afe79611941ce50453ee7dfae82d7915e9c4 (patch) | |
tree | af79f850176807bab545546c7a161a5cf7015d73 /service/http/parse.go | |
parent | b58bbaa615f38916860e06db27e2ab31b0eb2d08 (diff) |
more upload tests
Diffstat (limited to 'service/http/parse.go')
-rw-r--r-- | service/http/parse.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/service/http/parse.go b/service/http/parse.go index a7516ca6..1f90930a 100644 --- a/service/http/parse.go +++ b/service/http/parse.go @@ -2,7 +2,6 @@ package http import ( "net/http" - "os" ) // MaxLevel defines maximum tree depth for incoming request data and files. @@ -81,20 +80,6 @@ func parseUploads(r *http.Request, cfg *UploadsConfig) *Uploads { return u } -// exists if file exists. -func exists(path string) bool { - _, err := os.Stat(path) - if err == nil { - return true - } - - if os.IsNotExist(err) { - return false - } - - return false -} - // pushes new file upload into it's proper place. func (d fileTree) push(k string, v []*FileUpload) { keys := fetchIndexes(k) |