mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 18:34:46 +00:00
More perfect cleaning
This commit is contained in:
@@ -142,6 +142,7 @@ clean_dev_mobile() {
|
||||
# Removes old and unused local iOS simulator data from old unused runtimes
|
||||
# Can free up significant space (70GB+ in some cases)
|
||||
if command -v xcrun > /dev/null 2>&1; then
|
||||
debug_log "Checking for unavailable Xcode simulators"
|
||||
clean_tool_cache "Xcode unavailable simulators" xcrun simctl delete unavailable
|
||||
note_activity
|
||||
fi
|
||||
|
||||
@@ -201,8 +201,26 @@ clean_application_support_logs() {
|
||||
# These are covered by browser-specific cleaning in clean_browsers()
|
||||
done
|
||||
|
||||
# DISABLED: Group Containers log scanning (find operation can hang)
|
||||
# Group container logs are usually minimal, skipping for performance
|
||||
# Clean Group Containers logs - only scan known containers to avoid hanging
|
||||
# Direct path access is fast and won't cause performance issues
|
||||
# Add new containers here as users report them
|
||||
local known_group_containers=(
|
||||
"group.com.apple.contentdelivery" # Issue #104: Can accumulate 4GB+ in Library/Logs/Transporter
|
||||
)
|
||||
|
||||
for container in "${known_group_containers[@]}"; do
|
||||
local container_path="$HOME/Library/Group Containers/$container"
|
||||
|
||||
# Check both direct Logs and Library/Logs patterns
|
||||
if [[ -d "$container_path/Logs" ]]; then
|
||||
debug_log "Scanning Group Container: $container/Logs"
|
||||
safe_clean "$container_path/Logs"/* "Group container logs: $container"
|
||||
fi
|
||||
if [[ -d "$container_path/Library/Logs" ]]; then
|
||||
debug_log "Scanning Group Container: $container/Library/Logs"
|
||||
safe_clean "$container_path/Library/Logs"/* "Group container logs: $container"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# Check and show iOS device backup info
|
||||
|
||||
Reference in New Issue
Block a user