MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / ClearSystem

Function ClearSystem

tools.py:425–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423
424# 清理系统垃圾
425def ClearSystem():
426 count = total = 0
427 tmp_total, tmp_count = ClearMail()
428 count += tmp_count
429 total += tmp_total
430 print('=======================================================================')
431 tmp_total, tmp_count = ClearSession()
432 count += tmp_count
433 total += tmp_total
434 print('=======================================================================')
435 tmp_total, tmp_count = ClearOther()
436 count += tmp_count
437 total += tmp_total
438 print('=======================================================================')
439 print('\033[1;32m|-系统垃圾清理完成,共删除[' + str(count) + ']个文件,释放磁盘空间[' + ToSize(total) + ']\033[0m')
440
441
442# 清理邮件日志

Callers 2

bt_cliFunction · 0.70
tools.pyFile · 0.70

Calls 4

ClearMailFunction · 0.70
ClearSessionFunction · 0.70
ClearOtherFunction · 0.70
ToSizeFunction · 0.70

Tested by

no test coverage detected