mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Do not update directory access time (#15426)
Most setups will have relatime it only updates the access time following a change in the directory.
This commit is contained in:
parent
db8442584e
commit
2f1ef02d35
@ -232,7 +232,7 @@ func readDirFn(dirPath string, fn func(name string, typ os.FileMode) error) erro
|
||||
// Return count entries at the directory dirPath and all entries
|
||||
// if count is set to -1
|
||||
func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err error) {
|
||||
f, err := Open(dirPath)
|
||||
f, err := OpenFile(dirPath, readMode, 0)
|
||||
if err != nil {
|
||||
return nil, osErrToFileErr(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user