mirror of
https://github.com/pgsty/minio.git
synced 2026-08-11 00:33:28 +03:00
posix: reserved files should be filtered out at posix not object layer. (#1554)
This commit is contained in:
@@ -56,6 +56,10 @@ func readDir(dirPath string) (entries []string, err error) {
|
||||
return nil, err
|
||||
}
|
||||
for _, fi := range fis {
|
||||
// Skip special files.
|
||||
if hasReservedPrefix(fi.Name()) || hasReservedSuffix(fi.Name()) {
|
||||
continue
|
||||
}
|
||||
if fi.Mode().IsDir() {
|
||||
// append "/" instead of "\" so that sorting is done as expected.
|
||||
entries = append(entries, fi.Name()+slashSeparator)
|
||||
|
||||
Reference in New Issue
Block a user