Re: copyPath:@"/private/var/run/syslog"
Re: copyPath:@"/private/var/run/syslog"
- Subject: Re: copyPath:@"/private/var/run/syslog"
- From: Douglas Davidson <email@hidden>
- Date: Mon, 17 Jun 2002 13:52:22 -0700
On Monday, June 17, 2002, at 01:33 PM, Lorenzo Puleo wrote:
I'm trying to copy the files:
/private/var/run/pppconfd
/private/var/run/syslog
using the Cocoa API copyPath.
My copy fails because, after I got the byte size of the file "pppconfd",
the file seems to be a very very very large file (Tera and Tera of
bytes...)
and the destination disk never can have so much free space. The Finder
too
returns this incredible amount of bytes, while the whole disk, which
contains this source file, contains less bytes than the file itself.
Strange. Also, if I copy anyway one of these files, my application quits
unexpectedly.
That would be because these aren't files, they're sockets. You don't
want to try to copy devices, sockets, named pipes, etc. Use stat() to
find out what you've got.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.