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,894

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
  • That Windows 'command' is PowerShell input, so it should be powershell -command "Set-Content -Path \"<path>\" -Stream com.dropbox.ignored -Value 1" for usage in batch scripts and cmd. For current folder, <path> := %CD% can be used. – xamid Oct 13 '23 at 08:43