aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filer_buckets.go
blob: e9cb3547eca18b533cb6ce44f3be13b38f332156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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

}