Is checking the existence of file or folder blocking or non-blocking?
access( fname, F_OK ) // blocking ?
Is opening dir / file blocking or non-blocking?
opendir(dir); // blocking?
open(fd..); // blocking?
Is list dir blocking or non-blocking?
readdir // blocking?
By block, I mean take a long time to return.
accessblock anything? (waiting on what?)open(..., O_NONBLOCK)can and will block at least for the duration of the path traversal and permissions checks, which cannot be postponed, and which may involve multiple network round-trips.