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: Dominik Freyer <email@hidden>
- Date: Mon, 25 Oct 2004 16:42:24 +0200
Am 25.10.2004 um 16:29 schrieb Andréas Saudemont:
Dominik,
Did you talk of this? And is the memory leak now repaired?
Yes it is.
Anyway, I'm getting a *** Uncaught exception:
<NSFileHandleOperationException> *** -[NSConcreteFileHandle
readDataOfLength:]: Bad file descriptor
I'm now using readDataToEndOfFile
This is because you're calling readDataToEndOfFile on 'fromDu' which
was returned by fileHandleForWriting and thus cannot be used for input
operations.
What you need is to read the bytes from the NSFileHandle returned by
fileHandleForReading on 'fromPipe', not from the one returned by
fileHandleForWriting.
Andréas
Hey, thanks a lot to all. :-) Now it works. I will have to make some
string operations to get the information, but I can see the contents of
the buffer field, which look correct.
Well, you don't have to invoke a totally different application if
using fts. So it should be faster, and you get
the relevant information in a really nice handy format.
hmhm, sounds good. I will have to do some performance related redesign
in the future and I won't forget this idea. Be sure I'll be back with
some questions about this in the future. In the meantime, thank you for
the idea.
Dominik
_______________________________________________
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