mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Inspect: Preserve permission flags (#13490)
Preserve permission from disk files. Can help identify issues. Refactor GetRawData function to be cleaner.
This commit is contained in:
@@ -2270,7 +2270,7 @@ func (s *xlStorage) StatInfoFile(ctx context.Context, volume, path string, glob
|
||||
if os.PathSeparator != '/' {
|
||||
name = strings.Replace(name, string(os.PathSeparator), "/", -1)
|
||||
}
|
||||
stat = append(stat, StatInfo{ModTime: st.ModTime(), Size: st.Size(), Name: name, Dir: st.IsDir()})
|
||||
stat = append(stat, StatInfo{ModTime: st.ModTime(), Size: st.Size(), Name: name, Dir: st.IsDir(), Mode: uint32(st.Mode())})
|
||||
}
|
||||
return stat, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user