Is your folder empty but files are there? Our article covers the "folder shows empty but files are there" issue. Learn how to fix folder shows empty but files are there with clear troubleshooting for Windows and device sync problems.
Folder shows empty, but files are there on my D Drive!
Since I updated my pc from Windows 7 to 10, I have had some problems with the local disk D. For example, it shows that the folder is empty, but when I search for something, it shows that it's not empty.
How can I fix it?
- Question from learn.microsoft.com
Have you ever double-clicked a folder on your computer, only to find that it's empty, yet you’re certain your important documents, vacation photos, or work projects are supposed to be right there? This is a common digital headache that can be easily fixed.
Whether you're facing a folder that shows empty but files are there in Windows 10, the newer folder shows empty but files are there in Windows 11, or the specific "this folder is empty when connecting iPhone to PC" problem, understanding the "why" is the first crucial step to learning how to fix a folder shows empty but files are there.
So, what's actually happening under the hood? When your folder shows empty, but files are there, it's typically one of several software glitches or configuration errors blocking the view. It's rarely a case of actual deletion, which is the silver lining here. The system knows the data occupies space on the drive (you can check this by right-clicking the folder and selecting 'Properties'—it will likely show the correct size).
There are multiple reasons why your folders show empty, but it’s not:
There are multiple proven ways can fix the folder showing empty, but files are there, let’s find out.
This is the fix that works more often than not. Open File Explorer and navigate to the seemingly empty folder. Click the ‘View’ tab at the top. In the ribbon that appears, look for a box labeled "Hidden items" and make sure it is checked. Your files may instantly reappear.
While you're there, click the three-dot icon >"Options" to open the Folder Options window. Navigate to the ‘View’ tab within this new window. Under ‘Advanced settings’, scroll down and ensure "Show hidden files, folders, and drives" is selected.
Also, uncheck "Hide protected operating system files (Recommended)" just for this troubleshooting session—you might be surprised what appears. Remember to re-check this box later for safety. Sometimes, you might find that the show hidden files not working, check the solutions.
Sometimes, simply changing the folder's view from "List" to "Details" or "Large icons" can jolt the display back to normal.
Some malware will set certain file attributes to hide your files. Run the antivirus software to remove viruses and malware to make things right.
Windows 11 also has a habit of using "Compressed folders" in certain views, which can sometimes behave oddly.
1. Right-click the problematic folder, select 'Properties', and under the 'General' tab, click 'Advanced'.
2. Ensure "Compress contents to save disk space" is not checked, as this can occasionally cause display issues.
Besides, you can clear the corrupted thumbnail cache using the command prompt to fix it.
Search for "Command Prompt", right-click it, and select "Run as administrator".
Type del /f /s /q /a %localappdata%\Microsoft\Windows\Explorer\thumbcache_*.db and press Enter.
Next, we can check for system file corruption. In the same admin Command Prompt, type sfc /scannow and hit Enter. This System File Checker will scan and repair corrupted Windows system files.
For a deeper check, follow up with the DISM tool by typing DISM /Online /Cleanup-Image /RestoreHealth.
These tools can resolve underlying system issues that cause the folder to show empty, but files are there, a Windows 10 problem.
PowerShell is Command Prompt's more powerful sibling, perfect for Windows 11.
Right-click the Start button and select "Windows Terminal (Admin)" or "PowerShell (Admin)". Let's reset the Windows Explorer state completely. Type the following commands, pressing Enter after each:
Get-Process explorer | Kill-Process
Remove-Item -Path "$env:localappdata\Microsoft\Windows\Explorer\*" -Filter *.db -Force
The first command restarts Explorer (your taskbar will flash), and the second forcefully deletes the icon and thumbnail cache files. After a moment, your folder should refresh with the correct contents visible.
Not all empty folder issues are born from Windows itself; sometimes, they spring from connecting other devices.
1. Open an elevated command prompt.
2. Run this command:
attrib -H -R -S C:\* /S /D
1. Open an Admin Command Prompt again.
2. To check the disk for errors, type chkdsk C: /f /r (replace C: with the drive letter of your affected folder).
This will schedule a check on the next reboot; type 'Y' to confirm.
This utility can find and fix bad sectors and file system errors that might be hiding your files.
Besides, you can try the following steps to repair disk errors:
1. Open File Explorer and go to This PC.
2. Right-click on the drive that contains the folder showing as empty, and select Properties.
3. Go to the Tools tab and under Error checking, click on Check.
4. If errors are detected, follow the on-screen instructions to allow Windows to fix them.
Once the scan is complete, restart your computer and check if the folder contents are now visible.
When you plug in your iPhone to transfer photos, you only see an empty DCIM folder. The error message "this folder is empty when connecting iPhone to PC" is caused by a lack of trust, drivers, and software.
First, ensure you have the latest Apple Mobile Device Support drivers. The simplest way to do this is to install or update iTunes from the Microsoft Store. Even if you don't use iTunes, this package contains the essential drivers. After installing, restart your PC. Then, on your iPhone, when you connect it and see the "Trust This Computer?" prompt, make sure you tap "Trust" and enter your passcode.
In Windows, you can also try updating the driver manually: open Device Manager, find your iPhone under "Portable Devices", right-click it, and select "Update driver".
Try a different USB cable—preferably an original Apple cable—and plug it directly into a USB port on your computer, not a hub.
Reset the trust relationship. On your iPhone, go to Settings > General > Transfer or Reset [Device] > Reset > Reset Location & Privacy. This will make your iPhone ask to trust the computer again on the next connection.
Also, when connected, unlock your iPhone and keep it awake; iOS sometimes restricts access when the device is locked.
Ensure your iPhone is not in Low Power Mode, as this can limit background processes needed for data transfer.
When all else fails, or if you suspect the files might be lost, using dedicated data recovery software like MyRecover is your best bet.
MyRecover is designed to dig deep into your storage device, bypassing the Windows file system to find and restore data that seems gone.
MyRecover stands out while recovering files because:
So, how to recover deleted files with MyRecover? Follow the steps:
1. Download and install MyRecover on your computer. Launch the application.
2. Tap Deleted Files Recovery, select the specific drive where your "empty" folder is located, and click "Scan".
3. MyRecover will immediately begin a quick scan, and hit OK when it’s done.
4. Preview and select the files from your problematic folder, and hit Recover. Select a secure location to store them.
5. Once recovered successfully, check them in the destination folder.
Q: Why does my folder show as empty but have files in Properties?
A: The files are physically present (Properties shows disk usage), but Explorer fails to display them due to hidden attributes, corrupted cache, or system errors.
Q: Can viruses cause empty folders?
A: Yes. Malware can hide files or encrypt them. Run a full antivirus scan if you suspect an infection.
Q: I've shown hidden files, but folder still looks empty. What next?
A: Clear Windows cache via Command Prompt: del /f /s /q /a %localappdata%\Microsoft\Windows\Explorer\thumbcache_*.db, then run sfc /scannow. If issues persist, try data recovery tools.
Q: Will resetting my PC fix this?
A: Yes, but it's a last resort. A reset reinstalls Windows and removes apps. Try other troubleshooting methods first.
Q: How can I tell if files are deleted or just hidden?
A: Check folder Properties - if size > 0, files are likely hidden. Use the Command Prompt's dir /a command to see all files, including hidden ones.
Q: Is data recovery software safe to use?
A: Yes, but always recover files to a different drive/partition than the one being scanned to avoid overwriting lost data.
Q: What are these hidden files: Thumbs.db and desktop.ini, pagefile.sys, or boot.ini? Do they take up space in the folder?
A: Yes, Thumbs.db, desktop.ini, pagefile.sys, and boot.ini are hidden system files, and they do take up space in their respective folders: