What stat finds at path, following symlinks: none when nothing is there (ENOENT or ENOTDIR), otherwise whether it is a directory. Fails with PathUnreadable on any other error, such as an unsearchable parent directory (EACCES).
stat
path
What
statfinds atpath, following symlinks: none when nothing is there (ENOENT or ENOTDIR), otherwise whether it is a directory. Fails with PathUnreadable on any other error, such as an unsearchable parent directory (EACCES).