- [[dropbox - always ignore files]]
# Problem
How to ignore a file or folder on [[Dropbox]]?
```bash
# ignore
xattr -w com.dropbox.ignored 1 "path_to_dir_or_file"
xattr -w 'com.apple.fileprovider.ignore#P' 1 "path_to_dir_or_file"
# disable ignore
xattr -d com.dropbox.ignored "path_to_dir_or_file"
xattr -d 'com.apple.fileprovider.ignore#P' "path_to_dir_or_file"
```
# Resources
- [dropbox help](https://help.dropbox.com/files-folders/restore-delete/ignored-files)
- [automator Dropbox ignore — solving ignoring node\_modules and other folders from syncing (on a mac) | by Boz Bundalo | Medium](https://medium.com/@bozzified/dropbox-ignore-solving-ignoring-node-modules-and-other-folders-from-syncing-on-a-mac-ae5fa44543e8)
- [Sync icons on Dropbox for macOS - Dropbox Help](https://help.dropbox.com/sync/macos-sync-icons)
- [Solved: No such xattr: com.apple.fileprovider.ignore#P (er... - Dropbox Community](https://www.dropboxforum.com/t5/Create-upload-and-share/No-such-xattr-com-apple-fileprovider-ignore-P-error-MacOs/td-p/692497)