github.com/weaveworks/common@v0.0.0-20230728070032-dd9e68f319d5/fs/readdircount_unsupported.go (about)

     1  // +build !linux !amd64
     2  
     3  package fs
     4  
     5  // ReadDirCount, unoptimized version
     6  func (realFS) ReadDirCount(path string) (int, error) {
     7  	names, err := ReadDirNames(path)
     8  	return len(names), err
     9  }