safely reading directory contents
- by Jack
Is it safe to read directory entries via readdir() or scandir() while files are being created/deleted in this directory? Should I prefer one over the other?
When I say "safe" I mean entries returned by these functions are valid and can be operated without crushing the program.
Thanks.