Dropbox Can't Upload Empty Folder – Fix the Issue
In this article
No, Dropbox cannot upload an empty folder; it simply skips folders that contain no files because there is nothing to sync.
What You'll Need
- Dropbox desktop client installed on Windows, macOS, or Linux, or access to the Dropbox website via a modern browser.
- An active internet connection.
- At least one file inside the folder you want to sync (even a tiny placeholder file works).
Step‑By‑Step
- Open the Dropbox folder on your computer. This is usually located at
C:\Users\[YourName]\Dropboxon Windows or/Users/[YourName]/Dropboxon macOS. - Check whether the folder you are trying to upload is truly empty. Right‑click the folder and choose Properties (Windows) or Get Info (macOS) to see the size. If the size reads 0 KB, it is empty.
- If the folder is empty, create a placeholder file. The easiest way is to open a text editor, type a single character (or nothing), and save the file inside the folder as
placeholder.txt. On Windows you can also use the command line:type NUL > placeholder.txt. On macOS/Linux:touch placeholder.txt. - Once the placeholder file is saved, the Dropbox client will detect a change. You should see the green syncing icon appear on the folder or on the Dropbox system tray/menu bar.
- Wait for the sync to finish. When the green checkmark appears, the folder (now containing the placeholder) is safely stored in the cloud.
- If you prefer not to keep a placeholder, delete it after the folder has been uploaded and then add the real files you need. Dropbox will retain the folder structure because it now contains content.
- Alternatively, upload the folder through the Dropbox website: log in, click Upload → Folder, select the folder, and confirm. The web interface also rejects completely empty folders, so you will need the placeholder there as well.
Common Mistakes
- Assuming Dropbox will create an empty folder automatically. The service never creates or syncs empty directories; it only syncs items that contain at least one file.
- Using hidden system files as placeholders. Some operating systems place hidden files (e.g., .DS_Store on macOS) that Dropbox may ignore. A visible placeholder like
placeholder.txtguarantees detection. - Deleting the placeholder before the sync completes. Doing so removes the only content, causing the folder to be dropped again.
- Relying on the mobile app to create empty folders. The Dropbox mobile apps also ignore empty folders; the same placeholder method applies.
Tips
- Use a zero‑byte file named
.keepif you want a hidden placeholder that does not clutter the folder view. Dropbox treats it like any other file, so the folder will sync. - When creating many empty folders for project scaffolding, consider a script that adds a
.keepfile to each folder automatically. - Check the Dropbox sync status by clicking the Dropbox icon in the system tray (Windows) or menu bar (macOS). A spinning circle means syncing; a green check means everything is up to date.
- If you are using selective sync, ensure the parent folder is selected; otherwise, Dropbox will ignore the entire subtree, placeholder or not.
Troubleshooting
If the folder still does not appear in your online Dropbox after following the steps above, try the following in order:
- Restart the Dropbox client. Right‑click the Dropbox tray icon and choose Quit Dropbox, then launch it again from the start menu or Applications folder.
- Check for updates. In the Dropbox menu, select Preferences → General → Check for updates. Install any available update, as older versions sometimes mishandle placeholder files.
- Verify internet connectivity. A brief network interruption can pause syncing. Open a web browser and load any site to confirm connectivity.
- Sign out and back in. In the Dropbox menu, click your avatar, choose Preferences**, then Account** and select Sign out**. Sign back in with your credentials.
- Review selective sync settings. Go to Preferences** → Sync** → Selective sync** and make sure the folder’s parent is checked.
- Clear the Dropbox cache. On Windows, navigate to
%APPDATA%\Dropbox\cacheand delete its contents. On macOS, open~/Library/Application Support/Dropbox/cacheand delete the files. This forces Dropbox to re‑index the folder. - Reinstall the Dropbox client. Uninstall via Control Panel (Windows) or drag the app to Trash (macOS), then download the latest installer from dropbox.com and install fresh. This step is safe; your files remain in the cloud.
If none of these actions resolve the issue, contact Dropbox Support and provide the path of the folder, the placeholder file name, and any error messages shown in the client’s log (accessible via Help** → Dropbox logs**).
Frequently Asked Questions
Why does Dropbox ignore empty folders?
Dropbox only syncs items that contain data. An empty folder has no file content, so there is nothing for the service to store or transfer.
Can I prevent Dropbox from creating placeholder files?
No. A folder must contain at least one file to be recognized. Using a tiny hidden file like .keep is the most unobtrusive method.
Will the placeholder file increase my storage quota?
A single text file is typically a few bytes, far below any quota limit. It is negligible even across many folders.
Does the Dropbox mobile app sync placeholder files?
Yes. Once the placeholder exists on the desktop client and syncs to the cloud, the mobile app will display the folder and its placeholder file.
Can I batch‑add placeholders to many empty folders?
Yes. A simple script (e.g., a Bash loop on macOS/Linux or a PowerShell loop on Windows) can create a .keep file in each target directory.
Is there any way to make Dropbox treat an empty folder as a folder?
Not directly. The service’s design requires at least one file. Adding a placeholder is the official workaround recommended by Dropbox.