폴더 생성 확인
This commit is contained in:
@ -49,6 +49,14 @@ func (h *houstonHandler) RegisterHandlers(serveMux *http.ServeMux, prefix string
|
||||
h.deployPath = path.Join(storagePath, "deploys")
|
||||
h.downloadPath = path.Join(storagePath, "downloads")
|
||||
|
||||
if err := os.MkdirAll(h.deployPath, 0775); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := os.MkdirAll(h.downloadPath, 0775); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
logger.Printf("houstonHandler registed. deployPath : %s, downloadPath : %s", h.deployPath, h.downloadPath)
|
||||
|
||||
if len(prefix) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user