`deleteOrphaned` Option Doesn't Delete Hidden Files
See original GitHub issue🐞 Describe the bug
With deleteOrphaned
enabled, files beginning with .
are not deleted from the synced directory.
📚 To Reproduce
Create the following folder structure:
Sync Repository
docker/
Dockerfile
Target Repository
docker/
.env
Sync the entire docker/
folder with deleteOrphaned
set to true.
💡 Expected behavior
deleteOrphaned
should delete every file within the target repo which isn’t also in the sync repo. In the example above, .env
is missed.
🖼️ Screenshots
If applicable, add screenshots to help explain your problem.
⚙️ Environment
- Action version: latest
📋 Additional context
N/A
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Folder Contains Hidden Files You May Not Delete
For an orphaned file, try adding a text file to the folder that cannot be deleted. This should trigger a orphan record cleanup...
Read more >Waring “Folder Contains Hidden Files You May Not Delete”
Understanding the waring “folder contains hidden files you may not delete” when destroying Files in PDM Vault. Sometimes, “orphaned” document ...
Read more >is there a way to delete orphaned files? - Microsoft Community
Orphaned files are kept in a bunch of numbered folders located in the root of the drive you checked. You can delete them...
Read more >Remove orphaned app folders from iCloud Drive
The file is gone in the finder iCloud drive window on OSX10.10.2. So is it a hidden file which must be hidden but...
Read more >How to Uncover and Delete Hidden Files Cluttering Your Mac ...
Still, there are more insidious files cluttering your Mac; these can be hidden in folders you may not see, or, sometimes, in plain...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I concur. From a user of this action’s perspective, the ignoring of hidden files was rather unexpected. My vote would be to have hidden files included by default unless someone has a use-case where this behavior wouldn’t be desirable.
🎉 This issue has been resolved in version 1.17.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀