Monday, August 4, 2025

SuperDuper 4.0 Beta

Dave Nanian:

Our new trace capability showed quite clearly that the folder we were working on was

~/Pictures/Photos Library.photoslibrary/database/search/Spotlight/SpotlightKnowledgeEvents/index.V2/journals/12/cs_default

And that’s a folder I don’t have. When the user navigated to it at first, he said it was “empty”…which was weird. But later, he noticed that there was a spinner at the bottom of the Finder window. I asked him to wait, and >24 hours later, he finally got a list of files.

6,166,838 of them.

That’s right. 6,166,838 files. Generated by Spotlight. In one folder. Growing daily.

This version adds Tahoe compatibility, but not Liquid Glass:

There are some controls in SuperDuper (such as the Copy Now button with the snapshot selector) that don’t render well in the new, ass-ified theme. Apple’s own use of a similar control (the PDF selector in the Print menu) looks better when it’s not the default button (because the blobs aren’t weird and oversized), but you can see things going wrong when you click on the pop-up, where the highlight exceeds the button size, has a “waist”, etc.

Previously:

3 Comments RSS · Twitter · Mastodon


Had an instance where spotlight and even Alfred would always lag about 15 seconds between me entering a search term and it showing the result, and other issues (Backblaze never fully completing a backup, DaisyDisk unable to ever fully index the disk) persisted.

Discovered there was a tmp folder (inside Safari, inside Containers) that had 9 million files in it. It just works!


So what’s an efficient way to find if my disk has any folder with more than say one million files in it?


Corentin Cras-Méneur

I couldn't come up with a good idea to figure out where I might have tons of files. so I asked an AI for help and edited the shell script. The code searches for all the folders inside my user account that have more than 10k files. I ran it through sudo, but I'm not 100% sure you need to. In my case it returned 3 .Spotlight-V100/Store-V2 folders and a couple of cache folders from apps that tend to save everything and anything like Microsoft Teams and Google Chrome.

Here's the code:

#!/bin/bash

# Set the minimum number of files
MIN_FILES=10000

# The directory to search (default is /, you can change it to ~/ or any path)
SEARCH_DIR=~/

# Exclude some system directories to speed up search and avoid permission errors
EXCLUDE_DIRS="( -path /System -o -path /proc -o -path /dev -o -path /private/tmp -o -path /Volumes )"

echo "Searching for directories in $SEARCH_DIR with more than $MIN_FILES files…"

find "$SEARCH_DIR" \
$EXCLUDE_DIRS -prune -false -o \
-type d -print |
while read -r dir; do
count=$(find "$dir" -maxdepth 1 -type f 2>/dev/null | wc -l)
if [ "$count" -gt "$MIN_FILES" ]; then
echo "$count files in $dir"
fi
done

echo "Search complete."

Leave a Comment