Re: Determining the size of a directory Part 2
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