stat
How do I put together find, stat and touch?
I am trying to increase the timestamp of all files in a directory tree by one hour (to correct for DST change). After a lot of tinkering and searching I have figured out how to do it with find, stat a[详细]
2023-01-26 05:45 分类:问答C: strange behavior with nftw()
I\'ve this code: #include <ftw.h> #include <stdio.h> #include <string.h> int nftw_stat(const char *path, const struct stat *stat, int flags,[详细]
2023-01-24 07:44 分类:问答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 type of file. struct stat *buf /* just to show the type buf is*/[详细]
2023-01-21 05:43 分类:问答How do you determine the optimal disk IO block size on Win32?
On Posix systems, the st_blksize member of the stat structure contains the optimal block size for IO for a given file. It looks like the Win32 implementations of stat (_stat & _stat64) do not supp[详细]
2023-01-11 17:28 分类:问答stat() function doesnt seem to be working in test PAM module
I\'m trying to write a PAM module. The PAM module creates a directory on first log in. Very similar to the pam_mkhomedir.[详细]
2023-01-05 15:26 分类:问答How can I get the last modified time of a directory in Perl on Windows?
In Perl (on Windows) how do I determine the last modified time of a directory? Note: opendir my($dirHandle), \"$path\";[详细]
2022-12-27 09:40 分类:问答Inconsistency in modified/created/accessed time on mac
I\'m having trouble using os.utime to correctly set the modification time on the mac (Mac OS X 10.6.2, running Python 2.6.1 from /usr/bin/python). It\'s not consistent with the touch utility, and it\'[详细]
2022-12-23 06:19 分类:问答How can I get the high-res mtime for a symbolic link?
I want to reproduce the output of ls --full-time from a Perl script to avoid the overhead of calling ls several thousand times. I was hoping to use the stat function and grab all the information from[详细]
2022-12-23 03:00 分类:问答loading process with javascript
hy i have a index.php with a form, after i submit the form with a iframe to a page.php, a loading process appears[详细]
2022-12-18 20:49 分类:问答Check if a file is setuid root in Python
I\'m trying to check if a file has the setuid bit in Python. The stat doc mentions a S_ISUID function but it only works with os.chmod(), not to actually read th开发者_如何学运维e setuid bit. It also[详细]
2022-12-18 17:32 分类:问答