Horje
os Code Example
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))
os
LINUX !!!!




Python

Related
get random bright hex color python Code Example get random bright hex color python Code Example
generate key password Code Example generate key password Code Example
Update only keys in python Code Example Update only keys in python Code Example
network setting for virtualbox kali Code Example network setting for virtualbox kali Code Example
if start and end point is same in range function python Code Example if start and end point is same in range function python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8