filer_buckets.go 301 B

123456789101112131415161718192021
  1. package filer
  2. import (
  3. "strings"
  4. )
  5. func (f *Filer) isBucket(entry *Entry) bool {
  6. if !entry.IsDirectory() {
  7. return false
  8. }
  9. parent, dirName := entry.FullPath.DirAndName()
  10. if parent != f.DirBucketsPath {
  11. return false
  12. }
  13. if strings.HasPrefix(dirName, ".") {
  14. return false
  15. }
  16. return true
  17. }