1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Python program to explain shutil.disk_usage() method # importing shutil module import shutil # Path path = "/home/User/Documents" # Get the disk usage statistics # about the given path stat = shutil.disk_usage(path) # Print disk usage statistics print("Disk usage statistics:") print(stat) |