skip creation for root

This commit is contained in:
Chris Lu committed 2018-12-02 23:16:17 -08:00
1 parent bea162c34c
commit c6b646e92c
1 file changed
+4
+4
View File
@@ -56,6 +56,10 @@ func (fs *Filer) KeepConnectedToMaster() {
func (f *Filer) CreateEntry(entry *Entry) error {
if string(entry.FullPath) == "/" {
return nil
}
dirParts := strings.Split(string(entry.FullPath), "/")
// fmt.Printf("directory parts: %+v\n", dirParts)