stackofcodes
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
0 vote
336 views
1 answer
Corresponding angles
Python
0 vote
307 views
1 answer
Get every second elemnt of array matlab
Python
3 votes
325 views
1 answer
What is a class
Python
0 vote
310 views
2 answers
Python thousands separators
Python
0 vote
306 views
1 answer
Loop indexing
Python
0 vote
315 views
1 answer
How to add import pydictionary in python
Python
0 vote
333 views
1 answer
Comment dériver une classe python
Python
0 vote
306 views
1 answer
Python switch case 3.10 Structural Pattern Matching
Python
0 vote
292 views
1 answer
Gtk entry not editable python
Python
0 vote
317 views
1 answer
405 status code django
Python
Django
Share