File load problem

I have a real strange problem: An XML file (generated on Windows) but copied to a MBP (10.6.3) cannot load. File::existsAsFile() returns false, and I’ve traced it to the lstat call that returns -1. The file does exist as I can open it in an editor. WTF ?

WTF indeed!

Some kind of ownership problem, e.g. is it owned by root, or perhaps some other unixy type of permissions weirdness…?

[quote=“jules”]WTF indeed!

Some kind of ownership problem, e.g. is it owned by root, or perhaps some other unixy type of permissions weirdness…?[/quote]

Yeah, thought so too, but file is rw-r–r-- as other files that DO open nicely (i.e. lstat returns zero). And likewise with ownership.

Oh, and errno is 2 (“No such file or directory”) when lstat fails. The filename given to File is collected with DirectoryIterator, so no mistyping is possible.

Sorry. I found the problem. My eyes where playing me a trick. The path given was definitely faulty. Sorry for that. :oops:

Phew!