Moving files around your Mac is usually glitch-free. But sometimes, when you try to do something with your files, you may see an error saying, ‘The Finder can’t complete the operation because… (Error code -36).’ Keep on reading to find out why it pops up and how to fix it.

What is error code -36?

Error code -36 is an input/output (I/O) error: Apple’s list of system error codes calls it ioErr. It relates to actions in the Finder, such as moving, copying, or deleting files. The error message will helpfully tell you which file is giving problems. When you see the file name, you may notice that it starts with a dot and an underscore (for example, ‘._Report.pdf’). This is an AppleDouble file: macOS uses it to keep a file’s extra Mac information on drives that can’t store it in the file itself, such as drives formatted for Windows PCs. That ‘.’ means the file is hidden in the Finder.

Did you know?

Your Mac stores invisible files like .DS_Store, which the Finder reads when it displays a folder on a network share. However, they perform no function on other file systems, so when you see one on a USB stick that you use on Windows PCs and your Mac or a network drive, it’s because the other file system has made it visible. Files named .DS_Store, for example, contain information about custom attributes for files like icon positions and Get Info comments.



What causes error code -36 on Mac?

Error code -36 can occur when a hidden ‘._’ file becomes corrupted or there is some other problem with it. When that happens, the Finder is unable to work with the files you are trying to copy, move, or delete.

Here are some other reasons why you may see error code -36 on Mac: 

  • Software bug in your macOS version
  • Issues with read/write file permissions
  • If you see it when you use an external drive, it may be corrupted or not properly connected

How to fix error code -36 on Mac

Below, we will introduce two ways to fix error code -36 — manually with a few workarounds and automatically with a Mac optimization tool.

How to fix error code -36 manually

If you want to try to fix error code -36 manually, there are a few workarounds that could help.

1. Use Terminal

If you see the error on a USB stick or external drive formatted for Windows PCs, try this first: merge the hidden ‘._’ files with the files they belong to using a Unix command, dot_clean. This is done using Terminal. It’s straightforward to do, but you should make sure, as with all Terminal commands, that you type in the command exactly as it is displayed here:

  1. Go to Applications > Utilities.
  2. Double-click Terminal to open it.
  3. Type dot_clean followed by a space
  4. In the Finder, navigate to the folder that contains the files you were trying to copy, move, or delete.
  5. Drag the folder onto the Terminal window after the command you just typed.
  6. You should now see the file path displayed after the command you typed.
  7. Press Return.
  8. Try moving, copying, or deleting the files again.
  9. Quit Terminal.
Terminal window with the dot_clean command followed by the path to a folder
Tip:

In step 5 above, we told you to drag a folder onto the Terminal window. That’s a shortcut for typing out the path to the folder in full. It can be convenient if you’re unsure of the correct file path or how it should be formatted or if you don’t want to type a long pathname. You can use it with any Terminal command that needs a file path as a parameter.



If you often move files between your Mac and Windows PCs, see our guide to the best format for Mac external drives.

2. Manually change file permissions

Sometimes, the error code is caused by corrupted file permissions, so another way to solve it is to check those permissions and change them if necessary. Here’s what you need to do: 

  1. Go to the Finder and select the file or folder you want to copy, delete, or move.
  2. Control- or right-click it and choose Get Info. You can also press Command + I to open the same window.
  3. Scroll down until you see the Sharing & Permissions section.
  4. Set permissions for your current user to Read & Write. You may need to click the lock icon at the right side of the window and enter your admin credentials if you can’t change it.
  5. Close the Info window.
Get Info window with Sharing & Permissions open and Read & Write set for the current user

3. Use Disk Utility to run First Aid

Another possible reason why you may see the error message is that the disk has got corrupted. Luckily, macOS comes with a built-in tool that can help you fix it — Disk Utility. Here’s how to use it: 

If you see the error on your startup disk (Macintosh HD), Apple recommends running First Aid from macOS Recovery, as explained in the tip below. Check both Macintosh HD and Macintosh HD - Data. For more about First Aid, see our guide on how to repair a disk with Disk Utility.

  1. Open Disk Utility from Applications > Utilities. Or you can use the Spotlight search to find it.
  2. Choose View > Show All Devices and select the volume you want to check in the sidebar (for your startup disk, Macintosh HD).
  3. Now, click the First Aid button.
  4. Click Run.
  5. Repeat First Aid for each volume and container on the disk, then for the disk itself.
Disk Utility asking to confirm running First Aid on Macintosh HD, with the Run button

If Disk Utility tells you the disk is about to fail, back up your data and replace the disk. First Aid can’t repair a failing disk.

If you use an external drive when you get the error, first, make sure that it’s properly connected. If it is, follow the steps above to run First Aid for your external drive. But at step 2, select it instead of your startup disk.

Personal advice

To check your startup disk, start up from macOS Recovery, open Disk Utility there, and run First Aid. To boot into recovery mode, check out this article from Apple Support. Note that you have to choose your chip (Apple silicon or Intel) to see correct steps.

If First Aid finds nothing and the error keeps coming back, try the same action in safe mode. This boot mode helps you find out whether the problem is caused by software that loads when your Mac starts up, performs a basic check of your startup disk, and clears some system caches. Here’s how to boot your Mac in safe mode. To leave safe mode, restart your Mac as usual.

4. Delete the .DS_Store files

Another quick fix is to find and delete the .DS_Store files. If they got corrupted, it may cause error code -36. To delete them from the folder where you see the error, you’ll need to use Terminal once again: 

  1. Open Terminal from Applications > Utilities or using the Spotlight search.
  2. Type find followed by a space, then drag the folder where you see the error onto the Terminal window to add its path.
  3. Type a space and the rest of the command below, then press Return. Terminal lists the .DS_Store files in that folder and its subfolders without deleting anything:
    -name ".DS_Store" -type f -print
  4. Check the list. If it shows only .DS_Store files, run the same command again with -delete in place of -print to delete them.
  5. Try moving, copying, or deleting the files again.

For other ways to find and remove these files, see our guide on how to remove .DS_Store files on Mac.

5. macOS update

The final fix is to update your macOS. The thing is that you may see the error message because of a software bug that has been addressed in a new version of the operating system. More than that, it is always a good idea to keep your Mac updated to the latest macOS version compatible with your computer for security, stability, and compatibility, as Apple recommends.  

Here’s a quick reminder of how to update your Mac:

  1. Go to System Settings > General > Software Update. 
  2. Click Update Now or Restart Now and wait for the update to be installed. 
  3. Take a moment to enable automatic updates. 
System Settings Software Update pane showing that the Mac is up to date, with the Check for Updates button

If nothing helped, you may need to contact Apple Support for more tips.

How to fix error code -36 automatically

A quick way to try and address this and other Finder errors is to use a handy app for resolving all kinds of problems on your Mac. As well as helping you fix issues, CleanMyMac can also improve your Mac’s performance, keep it free from malware, and free up several gigabytes of space currently occupied by junk. 

To fix the error code -36 problem, we will use CleanMyMac to reset the Finder. Here’s what you need to do:

  1. Start your free CleanMyMac trial.
  2. Open CleanMyMac, choose Applications in the sidebar, and click Scan.
  3. Once the scan is complete, click Manage My Applications and go to Uninstaller.
  4. Locate the Finder in the window on the right and click the arrow to the right of its name. Select everything except Binaries.
    How to reset the Finder with CleanMyMac
  5. Click Remove.
Tip

To allow CleanMyMac to reset all default macOS apps, go to CleanMyMac Settings. Here, click Ignore List > Uninstaller. Deselect the box next to ‘Ignore system applications.’

You can use CleanMyMac to reset any app by simply selecting everything except Binaries in the list.

Error code -36 is an input/output (I/O) error in macOS that affects the Finder. It usually happens when you try to copy, move, or delete a file and can be caused by the Finder running into problems with hidden ‘._’ files that store extra information for files on drives that can’t keep it in the file itself. You can fix it using Terminal or by resetting files in the Finder using CleanMyMac’s Uninstaller tool.