diff --git a/router/router_server_files.go b/router/router_server_files.go index 481b7916..f2e6a6a6 100644 --- a/router/router_server_files.go +++ b/router/router_server_files.go @@ -424,7 +424,10 @@ func postServerCreateDirectory(c *gin.Context) { middleware.CaptureAndAbort(c, err) return } - + if err := s.Filesystem().Chown(filepath.Join(data.Path, data.Name)); err != nil { + middleware.CaptureAndAbort(c, err) + return + } c.Status(http.StatusNoContent) }