macOS 'The operation can't be completed' error fixed
That ugly macOS error -36 usually means a file copy or move failed. I’ll show you three real fixes based on what’s actually causing it.
I know this error is infuriating. You’re dragging a folder from your Mac to an external drive, and boom — “The operation can’t be completed because an unexpected error occurred (error code -36).” The file’s half-copied. You try again. Same thing.
This error usually hits when copying to external drives, but it can also show up on local moves, especially in macOS Ventura and Sonoma. The root cause is almost always a corrupted metadata file, a bad disk sector, or a permissions conflict. Let’s kill it.
1. Corrupted .DS_Store or hidden metadata files
This is the most common trigger. macOS uses .DS_Store files to remember folder view settings. When those files get corrupted — often after an unclean eject or a partial copy — Finder chokes and throws error -36.
The fix: delete metadata files using Terminal
- Open Terminal (it’s in Applications > Utilities).
- Run
defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder— this shows hidden files. - Now navigate to the source folder and the destination folder in Finder. Look for files named
.DS_Store,.localized, or any file starting with a dot. - Run this command from Terminal to clean the source folder and its subfolders:
Replacedot_clean /path/to/source/folder/path/to/source/folderwith the actual path. You can drag the folder into Terminal after typingdot_cleanto auto-fill the path. - After that, hide hidden files again:
defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder
Real-world case: I see this most often on WD and Seagate external drives formatted as exFAT. The .DS_Store files get mangled when the drive isn’t ejected properly. Running dot_clean fixes it every time.
If you’re on an APFS or HFS+ volume, the same fix works. Dot_clean isn’t just for external drives — it’ll repair .DS_Store corruption on any volume.
2. Disk errors or bad sectors on the source or destination drive
If the first fix doesn’t work, the problem might be physical or logical corruption on the drive itself. macOS error -36 can also mean the drive couldn’t read a specific block of data.
The fix: run Disk Utility First Aid on both drives
- Open Disk Utility (Applications > Utilities).
- In the left sidebar, select your source drive (the one you’re copying from).
- Click First Aid and then Run. Let it finish — could take a few minutes.
- Repeat the same for the destination drive.
- If First Aid reports “overlap extent” or “invalid node structure” errors, you might need to back up the drive and reformat it. But usually First Aid will fix minor corruption.
Skipping it? Don’t skip First Aid on the destination drive. I’ve seen cases where the source drive was fine but the external drive had a bad block that triggered -36. Running First Aid on both covers your bases.
For APFS volumes, First Aid is especially thorough — it checks the container, volume group, and snapshots. On HFS+ drives, it’s a bit more basic but still handles most directory errors.
3. Incorrect file permissions on the destination folder
Less common but sneaky. If you’re copying to a folder that has weird permissions — maybe from an old Time Machine backup or a shared drive — macOS will refuse to complete the write and throw error -36.
The fix: reset permissions on the destination
- Open Terminal.
- Navigate to the destination’s parent folder. For example, if it’s on your Desktop:
cd ~/Desktop - Run this command to reset permissions on the destination folder (replace
MyFolderwith your actual folder name):
You’ll be prompted for your admin password.sudo chmod -R 755 MyFolder - Also reset the owner to your user account:
sudo chown -R $(whoami) MyFolder - Now try the copy again.
This fix works especially well if you’re copying to a folder that was created by a different user (like an admin account vs. a standard account) or to a drive that was previously on a different Mac.
One more thing: If you’re on macOS Monterey or older, you might also run into this when copying to a folder synced to iCloud Drive. The permissions can get tangled. The chmod/chown combo above sorts it out.
Quick-reference summary
| Cause | Fix | Takes about |
|---|---|---|
| Corrupted .DS_Store files | Run dot_clean on the source folder | 2 minutes |
| Disk errors on either drive | Run Disk Utility First Aid on both drives | 5–10 minutes |
| Wrong permissions on destination | Run chmod and chown on the destination folder | 1 minute |
Try them in order. Nine times out of ten, dot_clean is your hero. If not, First Aid usually catches it. The permissions fix is your last resort. You’ve got this.
Was this solution helpful?