On Friday, June 6, 2003, at 07:04 PM, Michael G Schwern wrote:


On Thu, Jun 05, 2003 at 08:45:00AM -0500, Ken Williams wrote:
Oh, you're describing how to determine how the current system deals
with cases. I was describing how to determine the casing of a file
when you already know you're on a case-insensitive, case-preserving FS.

Can't you just look at readdir()?

Yeah, you can (that's what Stas suggested), but it's pretty wasteful to read an entire directory just to figure out the proper casing of a single file. O[# of files in the directory] when it should be O[1].


-Ken

Reply via email to