Re: ._ files on remote linux nas
- From: dempson@xxxxxxxxxxxxx (David Empson)
- Date: Wed, 5 Dec 2007 01:30:01 +1300
Andrew2 <andrea.moro.webma@xxxxxxxxx> wrote:
I'm looking to understand how I can avoid that Leopard write ,_xxx
fork file on remote Nas.
Basically the old faithful "defaults write com.apple.desktopservices
DSDontWriteNetworkStores true" works, but only for ".DS_Store" files.
The "._filename" files still get written. This not sounds bad if you
work just with Leopard or other Mac system, but using also PC ... I'm
frustrated, expeacially when I've to updload latest modifed files and
I've to ctrl+manually select odd files.
Those ._ files contain Mac-specific metadata (e.g. Finder information,
including file type and creator), and the resource fork. This might
include a custom icon.
What are the files you are copying to the NAS, and what application
created them? (I'm trying to identify whether the Mac-specific data
important if the Mac subsequently accesses the files.)
Are you creating files on the Mac and then copying them to the NAS, or
are you reading/writing the NAS directly from within the application?
A potential solution is to create the files locally on the Mac, then
arrange to copy the files onto the NAS using a tool which deliberately
copies only the data fork, ignoring the resource fork and extended
attributes.
I don't know an easy way to do this (e.g. in Finder) but Leopard's
command line 'cp' tool can copy a file without the resource fork or
extended attributes by adding the -X option.
One idea which occurs to me would be to set up an AppleScript as a
folder action on a folder on the Mac. It would react to files being
added to the folder by copying them to the NAS, using 'cp -X' to do the
copy, so it only copies the data fork. This may be sufficient to avoid
creation of the ._ file.
Any idea? I read something about AplleDouble and AppleSingle, but I'm
relatively new to the Mac wordl ... and I don't know exactly what
search and where.
AppleSingle won't help. It packages up the data fork, resource fork and
extended attributes in a single file which will then be unusable on any
other platform (unless you have something which can decode AppleSingle).
Its purpose is to allow a Mac file to travel through a foreign file
system without losing any data, not to allow another system to access
the file.
AppleDouble is effectively what you have at the moment. AppleDouble
operates by producing two files. One contains the data fork (which is
the useful file content for other platforms) and the other contains the
Mac-specific resource fork and metadata (the ._ file).
--
David Empson
dempson@xxxxxxxxxxxxx
.
- References:
- ._ files on remote linux nas
- From: Andrew2
- ._ files on remote linux nas
- Prev by Date: Re: Acquisiton Pro (new)
- Next by Date: Re: Acquisiton Pro (new)
- Previous by thread: Re: ._ files on remote linux nas
- Next by thread: %%%%% MAKE HUNDRED OF DOLLAR ONLINE %%%%%
- Index(es):
Relevant Pages
|