4

I'm using Dropbox with some project and one of my directories has subdirectory it's called ~/Dropbox/stuff/data, how do I exclude and/or ignore it without selective sync?

alexus
  • 2,794
  • 8
  • 42
  • 60
  • 1
    [some of this might be useful](http://superuser.com/questions/469776/how-to-exclude-files-not-folders-from-dropbox-sync) – Raystafarian Feb 26 '16 at 18:25
  • But also, no they've shot down the `.gitignore` type of solution for a while. – Raystafarian Feb 26 '16 at 18:27
  • I've recently implemented [dropboxignore](https://github.com/sp1thas/dropboxignore) which is a simple shell scripts that ignores files using file patterns and already existing `.gitignore` files. Hope to find it useful. – Panagiotis Simakis Jan 02 '21 at 11:06

1 Answers1

0

Based on this announcement, Dropbox allows user to ignore specific files. Based on your os, you can ignore files using one of the following commands:

Mac:

xattr -w com.dropbox.ignored 1 /Users/yourname/Dropbox\ \(Personal\)/YourFileName.pdf

Windows:

Set-Content -Path 'C:\Users\yourname\Dropbox(Personal)\YourFileName.pdf' -Stream com.dropbox.ignored -Value 1

Linux:

attr -s com.dropbox.ignored -V 1 /Users/yourname/Dropbox\ \(Personal\)/YourFileName.pdf