macOS · macOS Finder, install and recovery errors

-1407: Expected a folder but found a file

Usually fixable yourselferrFSNotAFolderLast checked: October 23, 2026

What does this code mean?

The action needed a folder at a certain place, but a file was found there instead. This can happen when a file and a folder share a name, or when a package, alias or disk image is treated like a plain folder.

Before you start

Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.

Likely causes

  1. A file has the same name as the folder that was expected
  2. An alias points to a file instead of a folder
  3. File system errors on the drive

Steps you can try

Did that fix it?

When to get help

If the error keeps coming back after these steps, or Disk Utility reports errors it can't repair, contact Apple Support. For an external drive, also check with the drive's maker.

Differences between versions

This is an old Mac file system result code that macOS still reports in Finder alerts. The exact cause depends on what you were doing (copying, moving, deleting, opening) and on the drive type.

Sources

This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.