site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi Adam, On 30 Mar 2011, at 22:03, Adam Mercer wrote:
i.e. "._compat" is how the resource fork of the file "compat" is represented under Linux.
I've been looking for a way to identify files with resource forks and strip them before packaging up the source. From what I've found the following should identify files that have resource forks:
$ find . -type f -exec test -s {}/..namedfork/rsrc \; -print
but it doesn't seem to be working, i.e. it doesn't identify the above files.
OS X creates ._ files to store extended attributes as well as resource forks. You can use "xattr -l file" to see whether a file has any extended attributes (files with extended attributes also have an "@" after their permissions in the output of "ls -l") and "xattr -d attr_name file" to delete them. Francis _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com