Last active
August 29, 2015 14:22
-
-
Save klappradla/34d3f987bbecac72a268 to your computer and use it in GitHub Desktop.
clean up file attributes when transferring vom ExFat to OSX
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
# ExFat format marks files without extension as 'Unix Executable' | |
# to restore original behaviour, | |
# remove executable bits from files and only set for directories | |
# recursively remove executable bits from all files | |
sudo chmod -R -x * | |
# remove executable bits from all hidden files (e.g. .gitignore) | |
sudo chmod -R -x .* | |
# set executable bit for directories (not accessible otherwise) | |
sude chmod -R +X * | |
# set for hidden folders | |
sudo chmod -R +X .* | |
# recursively reset dropbox attribute | |
xattr -r -d com.dropbox.attributes * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment