HERE WE G- *camera breaks against face*
git-svn-id: file:///srv/svn/repo/marisa/trunk@70 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
@@ -123,6 +123,14 @@ func main() {
|
||||
syscall.Setgid(gid)
|
||||
}
|
||||
|
||||
if err := os.MkdirAll(conf.filepath, 0755); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
if err := os.MkdirAll(conf.metapath, 0755); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
http.HandleFunc("/", uploader)
|
||||
http.Handle(conf.filectx, http.StripPrefix(conf.filectx, http.FileServer(http.Dir(conf.filepath))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user