Created
February 13, 2024 04:09
-
-
Save gh640/d5f8709a8e0f78b90e7fcbacd0af5a26 to your computer and use it in GitHub Desktop.
Ignoring a direcotry in Dropbox on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore | |
xattr -w 'com.apple.fileprovider.ignore#P' 1 my-directory | |
# Disable ignoring | |
xattr -d 'com.apple.fileprovider.ignore#P' my-directory | |
# My aliases | |
alias dropbox-exclude="xattr -w 'com.apple.fileprovider.ignore#P' 1" | |
alias dropbox-include="xattr -d 'com.apple.fileprovider.ignore#P'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xattr -w
:xattr -d
:man xattr
on macOS 13.6.4: