0

I want to reproduce behaviour exhibited in the Windows Explorer -> Properties dialog -> General property page for any given file. Specifically I want to reproduce the exact value of the "Size on disk" using a python FOTO2 Help please!

  • Does this answer your question? [Find size and free space of the filesystem containing a given file](https://stackoverflow.com/questions/4260116/find-size-and-free-space-of-the-filesystem-containing-a-given-file) – RetardedHorse May 20 '20 at 13:43
  • [uncompressed files] A possible workaround is calculate the "Size on disk" via file size retrieved by GetFileSizeEx. For example, if the cluster size is 4096. The file size is 14,638 bytes. The number of clusters this file uses can be figured using this formula: File Size / Cluster Size, rounded up. We get 4 here so the Size on disk is 4*4096=16,384 bytes. – Rita Han May 21 '20 at 03:40
  • @RitaHan-MSFT sorry, I attached not quite the right photo, look at "photo2" – David Valters May 22 '20 at 14:09
  • @DavidValters It seems the `Size on disk` is smaller that `Size` from *"photo2"*. Is it compressed file? – Rita Han May 26 '20 at 03:12
  • @RitaHan-MSFT No, this file is still being downloaded via torrent – David Valters May 29 '20 at 14:17

0 Answers0