summaryrefslogtreecommitdiff
path: root/service/http/parse.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 14:06:13 +0300
committerWolfy-J <[email protected]>2018-06-13 14:06:13 +0300
commitc8e8afe79611941ce50453ee7dfae82d7915e9c4 (patch)
treeaf79f850176807bab545546c7a161a5cf7015d73 /service/http/parse.go
parentb58bbaa615f38916860e06db27e2ab31b0eb2d08 (diff)
more upload tests
Diffstat (limited to 'service/http/parse.go')
-rw-r--r--service/http/parse.go15
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)