mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Changing to empty response when prefixDir doesn't exist
This commit is contained in:
@@ -51,3 +51,15 @@ func IsValidObjectName(object string) bool {
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// IsValidObjectPrefix verifies whether the prefix is a valid object name.
|
||||
// Its valid to have a empty prefix.
|
||||
func IsValidObjectPrefix(object string) bool {
|
||||
// Prefix can be empty.
|
||||
if object == "" {
|
||||
return true
|
||||
}
|
||||
// Verify if prefix is a valid object name.
|
||||
return IsValidObjectName(object)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user