[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two NSFileManager questions
From: |
Richard Frith-Macdonald |
Subject: |
Re: Two NSFileManager questions |
Date: |
Wed, 8 Mar 2006 14:30:13 +0000 |
On 8 Mar 2006, at 13:32, Enrico Sersale wrote:
1) NSFileManager, in -_copyPath:::, when encounters a directory,
tries to create a new destination directory with the same
attributes of the source; if the directory is created but the
attributes can't be set it skips the source contents, even if
_proceedAccordingToHandler::::: returns YES.
I'm wondering if this is the right behaviour or if it should be
considered a bug.
It seems to me a bit restrictive; if I'm a user and I want to make
a copy in my home directory of an external directory for which I've
read access, this should be allowed; in this case NSFileManager
should try to change only the permissions but not owner and group.
Agreed ... when copying a directory we should not be trying to
preserve the original ownership ... should be fixed in svn.
2) I can't find a way to remove broken symlinks; -
removeFileAtPath:: doesn't work in this case.
I can't reproduce this ... -removeFileAtPath: removes broken links
for me.