× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On Feb 24, 2011, at 2:33 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

I assume . and .. would give a "no such file" error, if you try to process
them by mistake

Actually no they didn't - they get reported as directories just fine.

But I have found the "cure" after deleting the hidden file. And it was a Homer "Doh!" moment.

I knew it couldn't be stat() - it made no sense - but the logic looked OK. Turns out that there were a number of factors at play.

1) In the past when this routine was used it was on a system where I had a default directory. On this machine I don't.

2) The directory I was attempting to list was the one that is normally my default.

3) . and .. are always there so they caused no problems - but the first file after that resulted in "not found" because the code did not prefix the retrieved file name with the directory name before doing the call to stat().

This is just a "play" program and I guess had never been run other than against the default directory.

As I said "Doh!"

Sorry to waste everybody's time. I will now go find the sackcloth and do penance!


Jon Paris



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.