[BUG][FIX] FileDirectory (on Windows)

Andreas Raab andreas.raab at gmx.de
Wed Dec 4 17:55:05 UTC 2002


> Ok, I see why that fixes it...but:
> 
> A) why are you looking at the first item and not the zero-th?

Because entry zero is plain UNDEFINED. That the primitive doesn't fail
for index <= 0 is a bug in the primitive.

> B) why isn't the primitive answering the directory entries for 'c:' or
> 'c:\'?

What do you mean?! What is wrong with any of the following?
	FileDirectory root entries
	(FileDirectory on:'c:') entries
	(FileDirectory on:'c:\') entries	

> C) this assumes that every directory has at least one 
> entry...

No it does not (one of the subtleties of that fix which should be
documented). It only assumes that the return value will *NOT* be "bad
path".

  - Andreas




More information about the Squeak-dev mailing list