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 that directory. Following this manpage I wrote the code under which doesn\'t work as[详细]
2023-04-11 08:47 分类:问答Problem reading directories in C
I am writing a simple C program that receives a directory as an argument and displays the files in this directory and also his subdirectories. I wrote a \"recursive\" function for doing that. But for[详细]
2023-04-05 19:57 分类:问答Get a nanosecond-precise atime, mtime, ctime fields for file (stat?)
Some filesystems (e.g. ext4 and JFS) offer nanosecond resolution of atime/开发者_Python百科mtime fields. How can I read ns-resolution fields? The stat syscall returns time_t which is a second-resoluti[详细]
2023-03-30 19:52 分类:问答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 access to a directory.[详细]
2023-03-28 09:45 分类:问答Traversing files on a distributed file system
I have a filesystem with a few hundred million files (several petabytes) and I want to get pretty much everything that stat would return and store it in some sort of database. Right now, we have an MP[详细]
2023-03-26 04:53 分类:问答R read files with for loop
开发者_如何学PythonI just want to use use 10 files in R. For each I want to calculate something.[详细]
2023-03-21 08:55 分类:问答stat() does not work for .so files
I am facing an issue with stat() . stat() does not seem to be working with .so files. It gives the error[详细]
2023-03-20 18:45 分类:问答Is fstat() a safe (sandboxed) operation?
I\'m currently writing a Python sandbox using sandboxed PyPy. Basically, the sandbox works by providing a \"controller\" that maps system library calls to a specified function instead. After following[详细]
2023-03-18 10:32 分类:问答What's the difference between struct __stat64 and struct _stati64 on WIN32?
I\'m working on some code that needs to run on every version of windows since WIN2000 and also needs to work with wide file paths.[详细]
2023-03-16 21:42 分类:问答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 I\'m having such a hard time! I found this example here, but I really don\'t understand this c[详细]
2023-03-16 03:16 分类:问答