• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: copyPath:@"/private/var/run/syslog"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >copyPath:@"/private/var/run/syslog" (From: Lorenzo Puleo <email@hidden>)

  • Prev by Date: copyPath:@"/private/var/run/syslog"
  • Next by Date: Re: Protecting Software w/ Software License
  • Previous by thread: copyPath:@"/private/var/run/syslog"
  • Next by thread: Double-click on link
  • Index(es):
    • Date
    • Thread