title: Python file size without opening file
body: <p>Do both <code>os.stat</code> and <code>os.path.getsize</code> open and close the file to get this information? 
  Is there a faster way to obtain the file size for large amounts of data without opening each file when I'm scanning the contents of terabytes of files?</p>