1. root dir has id of 0

2. only delete empty folders
3. correct listing files under a folder
This commit is contained in:
Chris Lu
2014-04-09 21:01:48 -07:00
parent abde40377c
commit 5f4dc11409
5 changed files with 26 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ func NewFilerServer(r *http.ServeMux, port int, master string, dir string, colle
}
if fs.filer, err = filer.NewFilerEmbedded(dir); err != nil {
glog.Fatal("Can not start filer in dir:", dir)
glog.Fatal("Can not start filer in dir", dir, ": ", err.Error())
return
}