Re: Hidden Files Not Being Copied


Subject: Re: Hidden Files Not Being Copied
From: Bill Moran (wmoran@mail.iowna.com)
Date: Fri Jan 19 2001 - 00:53:09 EST


Carsten Neumann wrote:
>
> On Thu, 18 Jan 2001, Bill Moran wrote:
> [snip]
> > I still want to know why there are directories that can't be deleted:
> > and I still suspect it has something to do with the .Apple* files. Has
> > anyone else witnessed this behaviour? Is it something to do with FreeBSD
> > only?
>
> Do you mean directories which contain dotfiles?

No, no dotfiles (except for the .Apple* files that Netatalk creates)

The sequence may be slightly different than I described. Here was
exactly what I was doing ...
1. Use WinNT to copy a folder tree full of stuff onto the FreeBSD server
via Samba
2. Sit down at the FreeBSD box and verify that the files/directories had
ownership/perms that it should be deletable by Netatalk users.
3. Attempt to delete the folder tree from a Mac
Result: all files are deleted, directories are not. Mac give a "can not
delete because in use" error.
On the server, the .AppleDouble files remain (these were created by
Netatalk when the Mac browsed the tree) but no other files exist ... "rm
-r *" deletes the tree without error. It can also be deleted from the
WinNT station.

I also duplicated the test with Irix/NFS with the same results (I.E.
create tree with Irix, Mac deletes files but not folders)

Here is the behaviour in a nutshell:
NT/Samba created, Irix/NFS deletes without error
Irix/NFS created, NT/Samba deletes without error
FreeBSD created, NT/Samba deletes without error
FreeBSD created, Irix/NFS deletes without error
Mac/Netatalk created, NT/Samba deletes without error
Mac/Netatalk created, Irix/NFS deletes without error
NT/Samba created, Mac/Netatalk cannot delete
Irix/NFS created, Mac/Netatalk cannot delete
FreeBSD created, Mac/Netatalk cannot delete
Mac/Netatalk created, Mac/Netatalk deletes without error

> Netatalk doesn't see them but can tell that this directory is not empty.

I understand, but considering Netatalk CREATED the .AppleDouble files,
should it delete them? I even dug into the source code, and as far as I
can tell, it should ALWAYS delete .AppleDouble files before removing a
directory.

> But I tried just that scenario:
> 1. created an empty folder (mac)
> 2. created (touched) a dotfile within that (u*x)

An .AppleDouble dotfile, or another dotfile? When I run this scenerio,
there are no dotfiles in the directories other than the .AppleDouble
files.

> 3. dropped it into the trash (mac)
> 4. tried to empty the trash (mac)
> error: ...contains items that are in use...
> 5. put away (cmd-y) (mac)
> error: The folder <folder> could not be put away, because it was created on the desktop.

The sequence you used here is different from what I described. If I
create a folder tree from the Macintosh, moving it to the trash succeeds
without error. I only have problems if the tree was NOT originally
created by the Mac.

The search continues ...

-Bill



This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:31 EDT