mirror of
https://github.com/minio/minio.git
synced 2025-01-26 06:03:17 -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
|
// Return count entries at the directory dirPath and all entries
|
||||||
// if count is set to -1
|
// if count is set to -1
|
||||||
func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err error) {
|
func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err error) {
|
||||||
f, err := Open(dirPath)
|
f, err := OpenFile(dirPath, readMode, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, osErrToFileErr(err)
|
return nil, osErrToFileErr(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user