Documentation: all pages

Duplicates

Strata ProStrata 1.0.45Updated

Duplicates finds files with identical contents, whatever they are called, among the files of 1 MB or more in the last scan, and from 1.0.41, if you ask, photos that look alike. It never searches by itself, nothing starts ticked, and it counts copies that share storage as the little that removing them would free: from 1.0.45 such a copy says Frees nothing, and sets of nothing but clones wait behind Show clones.

Strata's Duplicates room before a search, with Find Duplicates and how it compares: by size, then a sample of each file, then in full

How it compares files

Press Find Duplicates. Because it reads what is inside files, the search only runs when you ask, and it needs a finished scan. It works in three passes, shown on screen as it goes:

  1. Sizes. Files are grouped by size. A file with a size nothing else shares cannot have a duplicate, which rules out most files at once.
  2. Samples. For the files that remain, 16 KB from the start and the end of each are compared.
  3. Whole files. Only files that still match are read in full and compared by a SHA-256 fingerprint.

Two files are called duplicates only when their entire contents match. Names and dates play no part in it.

The last pass reads the biggest files first, and a file counts only once all of it has been read, so on a slow disk, such as a hard disk connected over USB 2, the count of files can stay at 0 for some time. From 1.0.42 the line under the title shows how much has been read out of the total, such as 21.5 GB of 350 GB, and once the pass has run for 15 seconds, a line below it gives about how long is left, at the pace of the last minute. From 1.0.45, when the disk being searched is on a USB 2 link, a line under them says so, and what would read it faster, such as Expansion is connected at USB 2 speed, through a hub, so it reads slowly. A USB 3 disk reads several times faster from a USB 3 port on the Mac itself. Plugged straight in, it points to a USB 3 cable and port instead. A fast link, the Mac's own disk, a disk image or a network share says nothing. Stop ends the search at any point. From 1.0.42 it keeps the sets of identical files the search had already confirmed, each one complete, and the room says that files it had not compared yet are not listed; Look Again compares everything. A search stopped before it had confirmed any set goes back to the start. With look-alike photos turned on, a stopped search does not look for them; Find Look-Alike Photos, in the Look-Alike Photos list, starts the look.

From 1.0.43, if the disk being searched is unplugged during the search, or unplugged and plugged in again, the search stops within seconds and says which disk went, rather than going on through every file left and counting it unreadable. The sets of identical files it had already confirmed stay, as after Stop. Once the disk is connected again, Check Again looks at those sets, reading their copies again where it needs to, and Look Again compares everything. If the disk is not connected when you press Find Duplicates, the room says so.

From 1.0.44, if the disk a search lost comes back at another place on the Mac, as macOS puts a disk at “Expansion 1” when its usual place is still taken (Finder still calls it Expansion), Strata knows it is the same disk by its UUID, or a network share by its address, and the sets follow it there with your ticks: Check Again looks at them where the disk is now, a new scan of the same place on it keeps them, and Look Again compares everything there. Move to Trash waits for that new scan, since the last scan still has the disk where it was, and the room says so. Wherever the disk comes back, the copies kept from the search no longer all count as changed: they stay in the list as they were, and Check Again does not read them all again. Whether a share is still connected is read from the list of mounted disks macOS keeps, without asking the share, so that check does not wait for one that has stopped answering.

Where it never looks

  • Inside apps, bundles or packages, and inside the Photos, Music and TV libraries, whose apps manage their own files;
  • node_modules and similar folders, where identical files are normal;
  • anything hidden, including .git folders and the Trash;
  • your Library, the Applications folders, and macOS's own folders;
  • files kept only in iCloud.

These are the places where a "duplicate" is usually there on purpose, and removing it would break something. Scan one of them by itself, such as your Library or Applications, and the room says it does not look there instead of offering Find Duplicates.

Reading the results

Each set of identical files is headed by the size of one copy and how many there are, and says how much removing the extra copies would free. Each copy's row gives its folder and date, and one is marked suggested to keep. If some files could not be read, the header says how many were left out.

Some copies free nothing when removed, and Strata says so:

  • a clone, sharing its storage: an APFS clone, which shares its blocks with the original until one of them changes;
  • one of N names for the same file: a hard link, where several names point at one file;
  • shares part of its storage.

From 1.0.45, where a copy's size would read 0 bytes, its row says what moving it frees instead. Frees nothing means nothing, whatever else goes with it, so long as one copy stays. Frees nothing alone means it shares its storage with other copies in the set, and frees it only together with them; its details say so. The footer reads nothing to reclaim rather than 0 bytes.

A set where removing any copy frees nothing, whichever copy is kept, is a set of clones, as when a copy made on the same disk still shares every block with its original, or a file has several names. Such sets are hidden until you tick Show clones, beside the count of sets, which shows only when there are any, and Strata remembers your choice. The line at the top counts them, such as 213 sets of clones hidden, and shown, each one's heading says clones: removing a copy frees nothing. Hiding them again unticks any copies in them. When every set found is clones, the room says Nothing to reclaim rather than that there are no duplicates, with Show Clones to list them.

How long a result lasts, and Check Again

A result lasts while Strata stays open, until you scan another place or search again. The line at the top says how old it is, such as Found 2 hours ago. Once checked again, it reads Found 3 days ago, checked again just now. A new scan of the place it searched keeps its sets and your ticks, and checks them against the disk at once, reading again only the copies that changed. A scan of another place clears the result, and a scan that lands while the search runs stops it: nothing starts it again, so press Find Duplicates to search again. Quitting Strata ends a result too.

A copy that has changed since it was compared is left out of its set, and the line at the top says how many have. Check Again, beside Look Again, checks the sets against the disk without a new search: it reads again, in full, only the copies whose date, file number or change time differ from what was found, and keeps one only if its contents still match its set's; a copy of another size, or one that has gone, leaves its set unread. A set left with one copy goes, and what is still a copy stays ticked. From 1.0.44, a copy it cannot look at, because its disk is not connected or has stopped answering, is not taken to have gone: it is kept as it was found, though out of sight and unticked, as is a set left with fewer than two copies in sight, and once the disk is back, Check Again shows them again. Two names of one file count as one file. A Finder tag, opening a file from Finder, new permissions or a trip to the Trash and back change its change time but not its contents: such a copy is left out until a Check Again has read it. While the disk a search lost is still disconnected, Check Again and Look Again are dimmed: with the disk away, every copy on it would read as gone, and a new search would have nothing to compare.

Which copy it suggests keeping

Place first, never dates. In order of preference: a folder you named, then Documents, Desktop, Pictures, Movies or Music, then anywhere else, and Downloads last. Between two copies in similar places, a name without "(1)", "copy" or "conflicted" wins.

At the top of the list, Select Extra Copies ticks every copy but the one to keep in each set, leaving alone any copy whose removal would free nothing. From 1.0.45, when that leaves nothing ticked, the footer says why: Nothing ticked: every copy here shares its storage with another file, so moving it to the Trash would free nothing. Its Keep… menu changes which copy is kept: Keep the Original (the suggested one), Keep the Newest or Keep the Oldest. Select None clears the ticks.

If you tick every copy of a file, Strata warns you: "That removes every copy of at least one file, not just the extras." It still lets you, because you may want the file gone altogether.

Look-alike photos

From 1.0.41, Duplicates can also find photos that look alike without being identical: bursts, edits, resized copies, and one shot kept as both HEIC and JPEG. It is off until you tick Also find look-alike photos on the room's first screen, or Look-alike photos beside the count of sets (Find Look-Alike Photos when there are none), and Strata remembers it. It needs macOS 14 or later; on macOS 13 the switch is dimmed and says so.

With it on, the look begins once the identical files are found, among the files their search compares, or at once if you turn it on afterwards. It reads the HEIC, JPEG, PNG, TIFF, WebP and raw photos of 1 MB or more among them, each once and small, and macOS's own Vision describes each one on this Mac, so nothing about your photos leaves it. Those descriptions, without the pictures, are kept in Strata's own folder in your Library's Caches, so a second look reads only the photos that have changed, and Stop keeps what was read. The groups are a list of their own, Look-Alike Photos, beside Identical Files.

Left out, and why:

  • everywhere the search for identical files never looks, above, the Photos library among them, since Photos manages its own;
  • photos kept only in iCloud, so that nothing downloads; the list says how many;
  • pictures of text, such as documents, receipts and screenshots, which can look alike and say different things; identical copies of them are still under Identical Files;
  • of a set of identical copies, all but the one the set keeps, which stands for them.

Unless both carry a camera's details, such as an exposure time or a lens, and neither has some text in it, two pictures are grouped only when nearly the same, as a picture saved again or resized is with its original.

Each group is a row of cards, under what keeping one of them frees: the picture, its name, its size in pixels, its size and its date. One card is tagged Keep, with why: one whose name does not say it is an enlargement or an enhancement, as IMG_0006.jpg over IMG_0006 (2x).jpg; then a raw file whose name says no edit; then the most pixels, any within 2% counting as large; of those, one whose name does not say it is an edit or a copy, as IMG_1234.HEIC over IMG_1234 copy.jpg or IMG_E1234.JPG; then the better format, raw first, then lossless (TIFF and PNG), then HEIC, then JPEG; then the oldest; then the first by name. Keep This, on any other card, keeps that one instead. Click a picture to see it larger, with the left and right arrow keys through its group, its tick box and Keep This; Esc closes it, and Space does while no control has the focus.

Nothing is ticked by itself. Select All But the Ones to Keep ticks every photo but the one kept in each group, for you to look over first, and Select None clears this list's ticks. Each list keeps its own ticks, and Move to Trash… takes what either list ticks, counted once; a photo ticked in the other list says so. Ticking every photo of a group brings a warning, as ticking every copy of a file does. What keeping one of each frees is shown apart from the identical files' figure, which the Overview gives alone.

Removing them

Move to Trash… first looks at the disk once more, saying Checking… beside it, and leaves out any copy or photo that has gone or changed since it was compared, then opens the confirmation sheet. While Check Again runs, it is dimmed. The Space Map and the totals are corrected at once, without a new scan, and Put Back returns the batch.

Why duplicates build up and the places a duplicate finder should never be pointed at are in How to find duplicate files on a Mac without deleting the wrong one.