Skip to content

Instantly share code, notes, and snippets.

@klappradla
Last active August 29, 2015 14:22
Show Gist options
  • Save klappradla/34d3f987bbecac72a268 to your computer and use it in GitHub Desktop.
Save klappradla/34d3f987bbecac72a268 to your computer and use it in GitHub Desktop.
clean up file attributes when transferring vom ExFat to OSX
# 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