Assignment Statements, Comparisons & Observations
Font: Size: + -

DropBox's equivalent of git's .gitignore

Saturday, August 15, 2020

We all know how node_modules is the heaviest object in the universe !
So we have by default a .gitignore file which has an entry /node_modules to prevent it from being uploaded to github or gitlab.
But now I was looking for the similar thing in DropBox to upload my entire workspace folder to my DropBox account without the enourmous node_modules folders.
It seems there is a way to get DropBox to ignore files / folders to be uplaoded.

$ xattr -w com.dropbox.ignored 1 /Users/username/Dropbox/workspace/project-name/node_modules

Set a file or folder to be ignored using the command line : DropBox Help Link.