Skip to content
← All apps

An app by Flavio

Safe Folder Flattener

Copy every file from a tree of subfolders into one flat folder. See each name before copying, never overwrite a duplicate, and keep a map back to the originals.

Buy Safe Folder Flattener · $20

One-time purchase. Plus tax where it applies.

macOS 14 or later · Apple silicon and Intel

You need every file from a folder into one place. The trouble is that the files sit in 50 subfolders, some of them three levels deep. And many share a name: every shoot folder has a Cover.txt, every camera folder has a C0001.MP4.

Opening each subfolder and dragging its files out is slow. Then Finder stops you on each duplicate name and asks what to do. Answer wrong once and a file is gone.

Safe Folder Flattener copies all the files into one new folder. Before it copies anything, it shows you the name each file will get. Two files with the same name both arrive, one with a number. A CSV in the new folder tells you where each file came from.

Safe Folder Flattener previewing the Harbor West folder: 7 files from 5 folders go into Flattened Files, with pills for 5 to copy, 2 numbered and 1 skipped. B/Cover.txt becomes Cover-2.txt and C/Photos/IMG_0001.jpg becomes IMG_0001-2.jpg with the added -2 highlighted, each file shows the folder it comes from, and the Create Flat Folder button is at the bottom right

Who it’s for

  • Photographers with card dumps. Your camera split a shoot into 100CANON, 101CANON and 102CANON, and the numbering restarted, so there are two IMG_0001.JPG. You want all of them in one folder for your editor, without losing either.
  • Video editors. Three cameras, each with its own folder, each starting at C0001.MP4. Your editing app or a transcription service wants one folder of clips, with none replacing another.
  • Office workers sending files to a portal. The shared drive has a folder per month and per client. The upload form only accepts files, not folders, so you need them all in one place before you select them.
  • Students and researchers. A course download or a dataset arrives nested five levels deep, with a README.pdf or data.csv in every folder. You want them side by side, still telling you which folder each came from.
  • Anyone with a printer or a tool that reads one folder. A photo kiosk, a batch converter or a print shop’s upload wants a flat folder. Yours has 30 subfolders.

From a nested tree to one folder

Say you have a folder called Harbor West with a subfolder per day of a job, and you need every file in one folder for the client’s upload page.

  1. Pick the folder. Click Choose… next to Nested folder, or drop the folder on it. Every subfolder inside it is included.
  2. Decide how names carry over. Leave Prefix with the parent folder off to keep the filenames as they are. Turn it on to put the name of each file’s folder in front, like Day 2 - Cover.txt.
  3. Pick where the new folder goes. Choose a Save in location outside Harbor West, and type a name under New output folder. The default is Flattened Files.
  4. Click Preview. Each file appears under its new name, with the folder it comes from below it. Most have a green Copy pill. A file that got a number has an orange Numbered pill, and the part the app added, like -2, is highlighted.
  5. Click Create Flat Folder. The app makes the new folder with all the copies and the map. The done screen lists what’s in it, and Show in Finder takes you there.

By hand, 50 subfolders means 50 rounds of open, select all, drag, go back. Every duplicate name adds a dialog. As an estimate, that’s half an hour of careful clicking for one folder tree, and nothing records which file came from where.

What it does

Shows every name before it copies

The preview lists every file the app found, with the name it will have in the new folder. Nothing is written until you click Create Flat Folder. If you change the folder, the checkbox or the output name, you preview again.

Never overwrites a file

When two files would get the same name, the first one keeps it and the next gets a number before the extension: Cover.txt, then Cover-2.txt, then Cover-3.txt. Names that differ only in capitalization, like cover.txt and Cover.txt, count as the same name. Most Mac and Windows drives treat them that way, and one would replace the other.

Prefixes with the folder name when it matters

Sometimes the folder name is the only thing that tells two files apart. With Prefix with the parent folder on, A/Cover.txt becomes A - Cover.txt and B/Cover.txt becomes B - Cover.txt. The prefix is the folder the file sits in directly, not the whole path. Files at the top of the folder you picked keep their name. If two names still collide, the second still gets a number.

Keeps a map back to the originals

The new folder has a file called Flatten map.csv. Each row has the original path, the output filename and the status. A week later, when the client asks about Cover-2.txt, you open the map and see it came from B/Cover.txt.

Leaves your originals alone

The app copies. The nested folder stays as it was, every file in its place.

The new folder appears only when every copy has finished. If something fails or you click Cancel, you don’t get a half-filled folder. If a file changes between the preview and the copy, the app stops and asks you to preview again, so what you get is what you checked.

Skips what it can’t copy safely

Links, macOS packages (like a .photoslibrary or an app bundle) and other special files aren’t copied. They show up in the preview and in the map as Skipped link, package, or special file, so you know they were there.

Why not drag them out in Finder

Finder can do this one folder at a time. Open a subfolder, select all, drag the files out, go back, repeat. On a duplicate name, Finder asks whether to replace the file, skip it or keep both. That’s fine for three folders, and slow and risky for fifty.

You can also search the folder in Finder and select all the results. That flattens the view, not the files, and you still face the duplicate dialogs when you drag them out. Either way, nothing records where each file came from.

Dragging in FinderSafe Folder Flattener
50 subfolders50 rounds of open, select, dragOne preview, one click
Duplicate namesA dialog per file, one wrong answer replaces itNumbered, shown before copying
Telling duplicates apartRename them yourselfOptional parent-folder prefix
Where a file came fromLost once it’s movedIn Flatten map.csv
The original folderEmptied if you moved filesUntouched, the flat folder is a copy
Missed filesEasy to skip a subfolderEvery file is in the preview

What it doesn’t do

  • It doesn’t filter by type. It copies every file it finds, hidden ones like .DS_Store included, so they show up in the map too.
  • It doesn’t remove duplicate files. Two identical photos both get copied, one with a number.
  • It doesn’t rename beyond the number and the optional prefix.
  • It doesn’t move files or delete the original tree.
  • It doesn’t fix names a Windows PC would refuse. For that, run the flat folder through Filename Compatibility Fixer.

Questions

Are my original files changed or moved?

No. The app only reads them and makes copies in a new folder.

Does anything get uploaded?

No. File processing happens on your Mac. The app goes online only to check for updates.

What if the output folder already exists?

The app won’t write into an existing folder. Choose a different name or location and preview again. The output also has to be outside the folder you’re flattening.

Which file keeps the original name when two collide?

The app goes through the folders in alphabetical order, and the first file it meets keeps the name. The preview shows you which one that is before anything is copied.

Does it work on external drives?

Yes. Pick a folder on any drive your Mac can read, and save the flat folder wherever you like, as long as it’s outside the source.

The documentation walks through the same Harbor West example as the screenshot.

Buy Safe Folder Flattener

$20 plus tax where it applies, paid once. Download the app from the purchase page or your Creem receipt.

Unzip the download and drag the app to Applications. It runs on macOS 14 Sonoma or later on Apple silicon and Intel Macs. File processing happens on your Mac.

The app checks for updates once a day. When a new version is ready, click Install and Relaunch. To check anytime, choose Safe Folder Flattener → Check for Updates….

Safe Folder Flattener screenshot at full size