This commit is contained in:
Chris Lu 2020-09-16 01:27:24 -07:00
parent 913a16268d
commit 4d21de63ee

View file

@ -289,11 +289,11 @@ func (fs *FilerServer) mkdir(ctx context.Context, w http.ResponseWriter, r *http
entry := &filer.Entry{ entry := &filer.Entry{
FullPath: util.FullPath(path), FullPath: util.FullPath(path),
Attr: filer.Attr{ Attr: filer.Attr{
Mtime: time.Now(), Mtime: time.Now(),
Crtime: time.Now(), Crtime: time.Now(),
Mode: os.FileMode(mode) | os.ModeDir, Mode: os.FileMode(mode) | os.ModeDir,
Uid: OS_UID, Uid: OS_UID,
Gid: OS_GID, Gid: OS_GID,
}, },
} }