Filesystem API: Using stat and lstat