Re: Identifying files with resource forks
Re: Identifying files with resource forks
- Subject: Re: Identifying files with resource forks
- From: Francis Devereux <email@hidden>
- Date: Wed, 30 Mar 2011 22:33:28 +0100
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden