Top "Stat" questions

The stat(2) system call on POSIX systems.

Having trouble understanding how fs.stat() works

I'm trying to write a function that tells me is a certain path is a directory. var fs = require('fs'); …

node.js stat
stat() error 'No such file or directory' when file name is returned by readdir()

I'm not able to identify the error thrown by stat. The below program reads all files in a directory and …

c unix stat
File stat() vs access() to check permissions on a directory

I have successfully used both stat() & access() separately to determine if a user has either read or read/write …

c++ file-io stat
Difference between lstat fstat and stat in C

Im writing a school assignment in C to search through a file system for directories, regular files and symlinks. For …

c stat fstat
Using stat to check if a file is executable in C

For homework I have to write a C program and one of the things it has to do is check …

c stat
C: Checking the type of a file. Using lstat() and macros doesn't work

I use opendir() to open a directory and then readdir() and lstat() to get the stats of each file in …

c file-type stat readdir opendir
flags for st_mode of stat system call

I'm trying to understand the flags for the st_mode field of the stat structure of that stat command, but …

c unix filesystems stat
How to figure out if a file is a link?

I have the below code only a part of it is shown here and I am checking if a the …

c linux symlink system-calls stat
how to calculate row means in a data frame?

I have a dataframe with 1000 columns and 8 rows, I need to calculate row means.I tried this loop: final <…

r dataframe stat
understanding and decoding the file mode value from stat function output

I have been trying to understand what exactly is happening in the below mentioned code. But i am not able …

linux perl unix permissions stat