readdir
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 分类:问答php sftp seg fault
What i need to do if next code gives me seg fault ? $handle = opendir(\"ssh2.sftp://$sftp\".\'/usr/bin/\');[详细]
2023-04-04 23:10 分类:问答How do I avoid this race condition with readdir/inotify?
Suppose I want to invoke some command on all files in a directory and set a watch to invoke that command on all files that get created in that directory.If I do:[详细]
2023-03-29 20:10 分类:问答file order variation in ext3 filesystem
I have a program whose output depends on how fi开发者_JS百科le order are returned by readdir. Is there any way to simulate different file return order over ext3[详细]
2023-03-29 00:45 分类:问答Readdir/closedir - Valgrind shows "invalid read"
Posting snippets of my code here. I am trying to get a footing around debugging. struct dirent *s_dirent;[详细]
2023-03-26 21:22 分类:问答readdir(3) strange behavior : finding non existing files in /dev/
I\'m using opendir / readdir / closedir to reproduce a program similar to ls, it went pretty well until I tried to ls \"/dev/\" when it comes to \"/dev/fd/\" with the recursive options, it find more f[详细]
2023-03-25 01:15 分类:问答PHP correct while-loop: (false !== ($file = readdir($handle))) is not showing recent files changes with MAMP on OSX
By now I\'m convinced that I must be one of the few who experienced something like this. The problem is that my PHP is not listing updates (or recent file changes) in a certain directory.[详细]
2023-03-22 13:55 分类:问答A readdir() issue
My intention is to read every directory and file rooted at a directory given as input in a depth-first manner and towards it I had written a portion(very very initial) of code as shown below.[详细]
2023-03-19 19:47 分类:问答Node.js fs.readdir recursive directory search
Any ideas on an async directory search using fs.readdir? I realize that we could introduce recursion and call the read directory function with the next directory to read, but I\'m a little worried abo[详细]
2023-03-01 05:57 分类:问答How can I get node.js to return data once all operations are complete
I am just learning server-side JavaScript so please bear with any glaring mistakes I\'ve made. I am trying to write a file parser that operates on HTML files in a directory and returns a JSON string[详细]
2023-01-31 02:36 分类:问答