mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Allow "minio server ." to start minio in fs mode (#4513)
This commit is contained in:
committed by
Harshavardhana
parent
0f5483f497
commit
ec2920e981
@@ -80,7 +80,7 @@ func (endpoint Endpoint) SetHTTP() {
|
||||
func NewEndpoint(arg string) (Endpoint, error) {
|
||||
// isEmptyPath - check whether given path is not empty.
|
||||
isEmptyPath := func(path string) bool {
|
||||
return path == "" || path == "." || path == "/" || path == `\`
|
||||
return path == "" || path == "/" || path == `\`
|
||||
}
|
||||
|
||||
if isEmptyPath(arg) {
|
||||
|
||||
Reference in New Issue
Block a user