All Posts by Date or last 15, 30, 90 or 180 days.

As an Amazon Associate I earn from qualifying purchases @AMAZON

Designed for the most demanding needs of photographers and videographers.
Connect and charge all of your devices through a single Thunderbolt or USB-C port.

Apple Core Rot: macOS Finder File Copying: Fails to Replace "dot files" When Replacing a folder = DATA LOSS

Apple Core Rot extends to all areas of macOS. See Apple Core Rot: It’s Big Things, and Hundreds of Little Ones, that Together Add up to Chaos and also Apple Quality Control: Enough is Enough.

Prelude

The macOS Finder ought to be rock solid, but it is rife with bugs

In particular, serious bugs exist withi macOS finder file copying. Data loss is a very real possibility. Do not rely on the macOS Finder to copy files! If you must do so, use diglloydTools IntegrityChecker to update the originals, the validate the copy or copies.

Just a sampler of the bugs related to the macOS Finder and file copying:

Replacing a folder doesn’t replace invisible files = DATA LOSS

Replace isn’t really a replace; it’s a “scan and screw it up” algorithm. Your best workaround is to delete the destination folder yourself, then copy a full fresh copy (if even that can always be trusted, which is dubious).

You don’t use or create invisible “dot” files? Well some of your software might. Yikes.

This bug came up while verifying files with diglloydTools IntegrityChecker; it flagged a discrepancy between the originals and the copy. I was able to repeat the bug at will (at least 5 times over two hours).

Conditions under which I verified this bug repeatedly:

  • macOS 10.13.6 High Sierra (likelly to be an issue with macOS 10.14.3 Mojave and maybe prior versions also).
  • Copying a folder from an APFS volume to a macOS Extended volume.
  • Changed file is an an invisible "dot" file (file starting with a "."), in this case ".icj".

It’s unclear if this bug affects only invisible files or whether there might be other conditions under which it might occur. It’s also unclear if the type of file system is involved (did not test).

Steps to reproduce

  1. Copy a folder with dot files to another destination (I used ".icj").
  2. Change one of the dot files.
  3. Repeat the copy. When the Finder offers Cancel or Replace, choose Replace.

PROBLEM: the copied folder contains old data in the invisible ".icj" file.

The bug is easily verified with IntegrityChecker (alternately, your choice of 'diff' program).

Or, the ".icj" file can also be opened and viewed; obviously different content = data loss.

Below is what IntegrityChecker showed after the file copy:

# original folder
diglloyd-iMac:MPG lloyd$ icj status ~/Desktop/TripPhotos/
=========================================================
FILE STATUS SUMMARY for 37 folders 2019-03-05 13:03:29
=========================================================
# With hash: 251
# Without hash: 0
# Missing : 0
# Hashed: 0
# Changed size: 0
# Changed date: 0
# SUSPICIOUS: not available, no hashing done
# copied folder — repeated copies do NOT fix the problem
NEW FILES for /Volumes/Master/TripPhotos/...
_DGL7090.xmp
_DGL7092.xmp
_DGL7093.xmp
_DGL7091.xmp
=========================================================
FILE STATUS SUMMARY for 37 folders 2019-03-05 13:03:39
=========================================================
# With hash: 247
# Without hash: 4		<=== WRONG = data loss
# Missing : 0
# Hashed: 0
# Changed size: 0
# Changed date: 0
# SUSPICIOUS: not available, no hashing done
View all handpicked deals...

Seagate 22TB IronWolf Pro 7200 rpm SATA III 3.5" Internal NAS HDD (CMR)
$500 $400
SAVE $100

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | X.com/diglloyd
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__