I was reading the official documentation of shutil from the Python website, then I ran a disk_usage test, but it isn't returning what I was expecting, Inside that directory (folder) there's a single file of 669 kb.
This is the code:
import os
import shutil
os.chdir(r"D:\python\topics\shutil\disk_usage")
directory = "test_folder"
total, used, free = shutil.disk_usage(directory)
print(used)
Output:
177422868480 (which I suppose is the value in bytes)
Expected output:
669000 (since the file inside is 669 kb)
Why I'm not getting the expected output?
Thank you