title: Size of directory from os.Stat/Lstat
body: <p>Let's say I do an <code>os.Stat()</code> on a directory:</p>
  
  <pre><code>func main() {
      fi, _ := os.Stat("/tmp")
      println(fi.Size())
  }
  
  // 548
  // Program exited.
  </code></pre>
  
  <p><a href="https://play.golang.org/p/NIzGMHRYfi" rel="nofollow">https://play.golang.org/p/NIzGMHRYfi</a></p>
  
  <p>What exactly is the <code>[FileInfo].Size()</code> value meant to represent? It's not the file size, so I'm guessing something like number of files? Inodes? I couldn't find a clear answer anywhere, so maybe someone can enlighten me?</p>