Re: AppleDouble ftpd?


Subject: Re: AppleDouble ftpd?
From: Charles Clark (cmclark@umich.edu)
Date: Thu Jan 25 1996 - 17:17:59 EST


On Thu, 25 Jan 1996, Andy Maas wrote:

> A while ago I had similar idea but to do it on the client side. I had suggested
> to Fetch author that when user select a file to download, Fetch can try to
> check existance of .AppleDouble/<the same file name>. If that is true then
> Fetch can (optionally prompt user for confirmation) to automatically get the
> two forks and build the file locally on the mac. It should also look at
> .AppleDesktop component for finderInfo (?)

FinderInfo is completely stored in the .AppleDouble/filename part of the
file. If anyone is interested in writing code to convert netatalk style
AppleDouble files, I can send you perhaps some advice and for sure some
Doc on the file format.

Basically you want the Apple DTS doc defining AppleDouble Version One,
and root around in bin/megatron/nad.c for the mtoupath routine for how we
convert filenames to unix-legal names (basically the same routine can be
found in ATALKSRCDIR/etc/afpd/desktop.c as well). You can use the
libatalk, but you don't need to, to convert afpd written files to
something else. If you want to write files that afpd will understand,
you pretty much need to use libatalk, since afpd makes some assumptions
when reading the AppleDouble file header that may not be valid in all
files even if they conform to the AppleDouble V1 spec. Using libatalk
makes sure afpd will deal with them correctly.

The nad.c module of bin/megatron is one example (hey, don't laugh at it
too much, I don't get paid to program/don't do too much of it) of reading
and writing afpd compatible files.

-- 
cmclark



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:23:56 EST