in reply to Re: Testing for readdir failure
in thread Testing for readdir failure
Another approach would be to stat the directory and verify that the link count matches the number of file names returned. That seems likely to catch an error, though not to identify the cause.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Testing for readdir failure
by LanX (Saint) on Apr 21, 2013 at 12:16 UTC | |
|
Re^3: Testing for readdir failure
by Laurent_R (Canon) on Apr 21, 2013 at 14:54 UTC |