• 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: Determining the size of a directory Part 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining the size of a directory Part 2


  • Subject: Re: Determining the size of a directory Part 2
  • From: Finlay Dobbie <email@hidden>
  • Date: Mon, 25 Oct 2004 14:30:29 +0100

On Mon, 25 Oct 2004 15:10:54 +0200, M. Uli Kusterer
<email@hidden> wrote:
> At 14:42 Uhr +0200 25.10.2004, Dominik Freyer wrote:
> > duOutput=[fromDu readDataOfLength:10];
>
> Try readDataToEndOfFile or whatever the method is called instead. If
> the output from du is shorter than 10 bytes, your code will keep
> waiting for more data while du has already hung up.

Just out of interest, why not use fts, which is what du uses anyway?
<http://darwinsource.opendarwin.org/10.3.5/file_cmds/du/du.c>

-- Finlay
_______________________________________________
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

References: 
 >Determining the size of a directory Part 2 (From: Dominik Freyer <email@hidden>)

  • Prev by Date: Re: Determining the size of a directory Part 2
  • Next by Date: Re: Determining the size of a directory Part 2
  • Previous by thread: Re: Determining the size of a directory Part 2
  • Next by thread: Re: Determining the size of a directory Part 2
  • Index(es):
    • Date
    • Thread