Use fileutils instead

This commit is contained in:
Henrique Dias committed 2017-07-27 21:39:23 +01:00
1 parent dac92eec8b
commit ff034f7e8f
8 files changed
+17 -247

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ import (
"path/filepath"
"strings"
"github.com/hacdias/filemanager/dir"
"github.com/hacdias/fileutils"
"github.com/mholt/archiver"
)
@@ -45,7 +45,7 @@ func downloadHandler(c *RequestContext, w http.ResponseWriter, r *http.Request)
}
// Clean the slashes.
name = dir.SlashClean(name)
name = fileutils.SlashClean(name)
files = append(files, filepath.Join(c.FI.Path, name))
}
} else {