Re: afpd tools


Subject: Re: afpd tools
From: Charles Clark (cmclark@umich.edu)
Date: Tue Feb 22 1994 - 10:08:59 EST


> From: asty@cr2a.fr (Patrick Asty)

> I think it is always possible to create - from Unix - directories & files in a
> unix afpd directory: when they are accessed under MacOs, all is ok.
>
> Am I right ?

This should be true.

> But I notice it is not possible to delete - from Unix - directories & files in a
> unix afpd directory: the .AppleDouble have to be modified.
>
> Does anybody make such tools (a sort of afpmkdir afprmdir afpcp afprm ...) ?

I wrote "tc" once (stands for trash can, of course); but it wasn't
quite up to rm standards. I don't think I have the most evolved
version of it around anymore even.

alias afprmdir 'rm -r'

> I would like to develop such tools but I don't know exactely what to do in the
> ..AppleDouble & .Parent directories & files.

All you really need to do when you delete a file is to delete the
exact same filename in the .AppleDouble directory; ie to delete
"/usr/local/mac/Font:2fDA Mover 4.1" then also delete
"/usr/local/mac/.AppleDouble/Font:2fDA Mover 4.1" (if it exists). To
delete a directory, you just can do "rm -r" on the directory.

I believe if you copy a file, and you copy the relevant .AppleDouble
part of the file to the .AppleDouble directory in the new place, it
should work fine, but I'm not SURE that there is no weirdness in this
case. (If there were, it should be nothing a clean up by name or some
such from the mac wouldn't handle).

--
cmclark



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