devmingle
Home
Categories
Popular Codes
Articles
/
Python
/
Os
Os
Os
LINUX !!!!
0
Os
import os total_size = 0 start_path = '.' # To get size of current directory for path, dirs, files in os.walk(start_path): for f in files: fp = os.path.join(path, f) total_size += os.path.getsize(fp) print("Directory size: " + str(total_size))
0
Source:
tutorialspoint.com
Share
Similar codes
1 vote
97 views
2 answers
Get definition of word python
Python
0 vote
93 views
1 answer
Access Google Photo API with Python using google-api-python-client
Python
0 vote
107 views
1 answer
Count upper case characters in a string
Python
0 vote
53 views
1 answer
Zip used in python stack overflow
Python
0 vote
106 views
1 answer
Quantile-quantile plot python
Python
2 votes
123 views
4 answers
Utf-8 codec can't decode byte python
Python
3 votes
100 views
2 answers
Import file in parent directory python
Python
0 vote
61 views
5 answers
Cdf empírica python
Python
0 vote
123 views
1 answer
Django form is onvalid
Python
0 vote
95 views
1 answer
Temp python web server
Python
Share