Skip navigation.
 
mlRe: Determining the size of a directory Part 2
FROM : Finlay Dobbie
DATE : Mon Oct 25 15:30:29 2004

On Mon, 25 Oct 2004 15:10:54 +0200, M. Uli Kusterer
<witness.of.<email_removed>> 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

Related mailsAuthorDate
mlDetermining the size of a directory Part 2 Dominik Freyer Oct 25, 14:42
mlRe: Determining the size of a directory Part 2 stephane sudre Oct 25, 14:50
mlRe: Determining the size of a directory Part 2 Andréas Saudemont Oct 25, 14:56
mlRe: Determining the size of a directory Part 2 Andréas Saudemont Oct 25, 15:04
mlRe: Determining the size of a directory Part 2 M. Uli Kusterer Oct 25, 15:10
mlRe: Determining the size of a directory Part 2 Finlay Dobbie Oct 25, 15:30
mlRe: Determining the size of a directory Part 2 Dominik Freyer Oct 25, 15:48
mlRe: Determining the size of a directory Part 2 Andréas Saudemont Oct 25, 16:29
mlRe: Determining the size of a directory Part 2 Dominik Freyer Oct 25, 16:42
mlRe: Determining the size of a directory Part 2 stephane sudre Oct 25, 17:17
mlRe: Determining the size of a directory Part 2 Finlay Dobbie Oct 25, 18:57
mlRe: Determining the size of a directory Part 2 Dominik Freyer Oct 25, 20:52
mlRe: Determining the size of a directory Part 2 Darkshadow Oct 26, 02:46
mlRe: Determining the size of a directory Part 2 Finlay Dobbie Oct 26, 12:38