You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
301 B

  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. }