mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-18 06:50:35 +02:00
4fd5f96598
these metadata can change and are not used
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
|
|
|
|
}
|