mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-12 12:00:45 +02:00
22 lines
301 B
Go
22 lines
301 B
Go
package filer
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func (f *Filer) isBucket(entry *Entry) bool {
|
|
if !entry.IsDirectory() {
|
|
return false
|
|
}
|
|
parent, dirName := entry.FullPath.DirAndName()
|
|
if parent != f.DirBucketsPath {
|
|
return false
|
|
}
|
|
if strings.HasPrefix(dirName, ".") {
|
|
return false
|
|
}
|
|
|
|
return true
|
|
|
|
}
|