mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
@@ -92,12 +92,12 @@ func readDirN(dirPath string, count int) (entries []string, err error) {
|
||||
return nil, err
|
||||
}
|
||||
if fi.IsDir() {
|
||||
entries = append(entries, name+slashSeparator)
|
||||
entries = append(entries, name+SlashSeparator)
|
||||
} else if fi.Mode().IsRegular() {
|
||||
entries = append(entries, name)
|
||||
}
|
||||
case data.FileAttributes&syscall.FILE_ATTRIBUTE_DIRECTORY != 0:
|
||||
entries = append(entries, name+slashSeparator)
|
||||
entries = append(entries, name+SlashSeparator)
|
||||
default:
|
||||
entries = append(entries, name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user