MCPcopy
hub / github.com/PleasePrompto/notebooklm-skill / _format_size

Method _format_size

scripts/cleanup_manager.py:131–137  ·  view source on GitHub ↗

Format size in human-readable form

(self, size: int)

Source from the content-addressed store, hash-verified

129 return 0
130
131 def _format_size(self, size: int) -> str:
132 """Format size in human-readable form"""
133 for unit in ['B', 'KB', 'MB', 'GB']:
134 if size < 1024:
135 return f"{size:.1f} {unit}"
136 size /= 1024
137 return f"{size:.1f} TB"
138
139 def perform_cleanup(
140 self,

Callers 2

print_cleanup_previewMethod · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected