mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
This commit is contained in:
parent
70b5e3d090
commit
e6bc24b648
|
@ -91,7 +91,7 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
|
|||
|
||||
}()
|
||||
|
||||
os.MkdirAll(newDir, os.ModeDir)
|
||||
os.MkdirAll(newDir, 0755) // os.ModeDir, 0755 fix for unix users by @cgyy
|
||||
tokens := strings.Split(zipURL, "/")
|
||||
fileName := newDir + tokens[len(tokens)-1]
|
||||
if !strings.HasSuffix(fileName, ".zip") {
|
||||
|
|
Loading…
Reference in New Issue
Block a user