Re: NSFileManager - "Can't read directory contents" ??
Re: NSFileManager - "Can't read directory contents" ??
- Subject: Re: NSFileManager - "Can't read directory contents" ??
- From: Charilaos Skiadas <email@hidden>
- Date: Wed, 20 Jul 2005 07:20:22 -0500
Do I understand correctly, that you are trying to copy the entire
volume, which is some sort of external drive or something?
Maybe there are some folders in there that you are not allowed to copy?
Can you copy specific files or folders from the volume, instead of
the whole volume?
It is worth trying the following experiment, to have a directory that
has all permissions, and inside it has a directory with no
permissions, and try to copy the top directory, just to and from your
local drive. Can you copy it then programmatically?
Because I tried in finder, and it asks for my administrator's
password. Plus, if I try to read the subdirectory, it of course tells
me I have insufficient privileges. Might this be your problem?
Granted, the error is not very informative, but some experiments with
other folders might help you pin down the problem.
On Jul 20, 2005, at 6:46 AM, Shon wrote:
Yes, and still no dice. The problem with such a move, though, is that
it's not a 'standardized' path. Had this worked, I'd have considered
it a glaring bug.
Thanks,
::S
On 7/19/05, Charilaos Skiadas <email@hidden> wrote:
Have you tried "/Volumes/SHONSD/" instead of "/Volumes/SHONSD"?
On Jul 19, 2005, at 9:24 PM, Shon wrote:
Originally, this is exactly what I was doing, but launching the app
from a terminal (so I'd know the current directory). I've since
discovered the error of my ways and have corrected the code to
contain
a proper absollute path for the destination.
My more recent messages contain the code and logs ... and
evidence of
the sill-present error. :-(
--Shon
On 7/19/05, Aaron Burghardt <email@hidden> wrote:
On Jul 19, 2005, at 1:39 PM, Shon wrote:
I didn't copy/paste that path; it is indeed "/Volumes/SHONSD". I
don't key
this path in, it comes from the notification. The destination
path is
"./temp/" and is currently hard-coded into the app.
You specify "./temp/", but do you know where "./" is? If you
aren't setting
the the current working directory, read the docs on the
NSFileManager
methods:
- (NSString *)currentDirectoryPath
- (BOOL)changeCurrentDirectoryPath:(NSString *)path
Hope that helps.
Aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40math.uchicago.edu
This email sent to email@hidden
Haris
Haris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden