Python 3 Script to Check Disk Usage in Windows For Given Path Full Project For Beginners



# 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:")

Leave a Reply