Skip to main content

Module system_junk

Module system_junk 

Source

Functions§

scan_brew_cache
Size the Homebrew cache directory and offer brew cleanup as the cleanup command.
scan_broken_symlinks
Scan key bin directories for symlinks whose targets no longer exist.
scan_broken_symlinks_in
Inner implementation that accepts arbitrary directories (testable).
scan_crash_reports
Scan ~/Library/Logs/DiagnosticReports/ for crash reports older than 30 days.
scan_device_support
Scan ~/Library/Developer/Xcode/{iOS,watchOS,tvOS} DeviceSupport/ for old version directories.
scan_ds_store
Recursively walk home collecting all .DS_Store files. Returns a single aggregated item with total count and size.
scan_language_packs
Detect unused language packs (.lproj) in /Applications/*.app. Keeps user’s preferred languages + English + Base. WARNING: Removing .lproj directories invalidates app code signatures.
scan_language_packs_in
Inner implementation that accepts an arbitrary apps directory (testable).
scan_system_junk
Run all system junk sub-scanners and return combined results.