mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-16 11:39:02 +08: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
|
|
|
|
}
|