Skip to content

Commit e63ae32

Browse files
committed
🍒 database_limit_size: added origin of get_directory_size method
1 parent 08f31cc commit e63ae32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

database_limit_size/models/ir_http.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from odoo.tools import human_size
88

99

10+
# https://stackoverflow.com/a/1392549
1011
def get_directory_size(start_path):
1112
total_size = 0
1213
for dirpath, _dirnames, filenames in os.walk(start_path):

0 commit comments

Comments
 (0)