Skip to content

Instantly share code, notes, and snippets.

@corean
Last active December 15, 2021 11:39
Show Gist options
  • Save corean/58a8cd8630f201791eb27b3aef5d8098 to your computer and use it in GitHub Desktop.
Save corean/58a8cd8630f201791eb27b3aef5d8098 to your computer and use it in GitHub Desktop.
MacOS Dropbox 동기화 디렉토리 제외
find ~/Dropbox/Sites -type d | grep 'node_modules$' | grep -v '/node_modules/' | xargs -I {} -t -L 1 xattr -w com.dropbox.ignored 1 "{}" && find ~/Dropbox/Sites -type d | grep 'vendor$' | grep -v '/vendor/' | xargs -I {} -t -L 1 xattr -w com.dropbox.ignored 1 "{}"
@corean
Copy link
Author

corean commented Dec 15, 2021

find /Volumes/2T\ SSD/Dropbox/Sites -type d | grep 'node_modules$' | grep -v '/node_modules/' | xargs -I {} -t -L 1 xattr -w com.dropbox.ignored 1 "{}" && find /Volumes/2T\ SSD/Dropbox/Sites -type d | grep 'vendor$' | grep -v '/vendor/' | xargs -I {} -t -L 1 xattr -w com.dropbox.ignored 1 "{}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment