Announcement

Collapse
No announcement yet.

Get path directory size in bytes

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get path directory size in bytes

    You can get size of specified directory using below script,


    import os;
    result=os.path.getsize('C:\Users\Ross\Downloads')
    print(result);




    Sample output would be,

    Click image for larger version

Name:	size.jpg
Views:	1
Size:	3.0 KB
ID:	4645

Working...
X