We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
anjanesh
5 years agoHelpful | Level 6
.dropbox-ignore to prevent folders being uploaded to DropBox like git's .gitignore
Just like we have .gitignore for preventing files / folders to be uploaded to github, it would be nice to have the same for DropBox.
I have a workspace folder with tons of node_modules folders.
I...
- 5 years ago
Got the answer here : https://help.dropbox.com/files-folders/restore-delete/ignored-files
tdriley
Explorer | Level 4
I got it working like denysp said, but I needed to add the -r param, so:
`xattr -rw com.dropbox.ignored 1 /Users/yourname/Dropbox/**/node_modules`
Update: Actually, both commands seem to work, but you need to run it again every time a new node_modules dir is created (eg every time you npm install a new repo), it won't ignore new ones automatically 😞
At least that's slightly better than running a new custom command for every repo.
DevGuyWithSolutions
3 years agoNew member | Level 2
I've been copy pasting this every few days for a while and grew tired of editing the name, so to simplify:
`xattr -rw com.dropbox.ignored 1 ~/Dropbox/**/node_modules`
- Darcey3 years agoExplorer | Level 4
pCloud has this feature, save yourself some time and just get 2TB on pCloud for life during a sale. Just add node_modules etc etc inside their software client.
- anjanesh3 years agoHelpful | Level 6
https://stackoverflow.com/a/72978599/126833
In case you want to get all of the node_modules that you want to delete in a shell file :
find . -name node_modules -type d -print0 | xargs -0 stat -f "rm -rf %N" > rm_node_modules.sh
Then in terminal run
bash rm_node_modules.sh
- Darcey3 years agoExplorer | Level 4
pCloud has this feature, this has been a dropbox request for years, don't waste your time.
About Create, upload, and share
Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.
Need more support
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!