Top "Readdir" questions

The C, Perl or PHP library function for reading from an open directory.

node.js fs.readdir recursive directory search

Any ideas on an async directory search using fs.readdir? I realise that we could introduce recursion and call the …

node.js readdir
How to use S_ISREG() and S_ISDIR() POSIX Macros?

This is a C program I wrote to recursively navigate and output directories and regular files. It compiles and runs …

c solaris stat readdir
Members of Dirent structure

I have started working with dirent.h library and I came across a very useful member of "struct dirent" structer …

c linux dir readdir dirent.h
Microsoft Visual Studio: opendir() and readdir(), how?

I've used this kind of code in my Dev-cpp before: if((dh = opendir(folder)) !== false){ while((file = readdir(dh)) !== false){ // …

visual-studio visual-c++ readdir
How can I list all files in a directory sorted alphabetically using PHP?

I'm using the following PHP code to list all files and folders under the current directory: <?php $dirname = "."; $dir = …

php sorting directory readdir opendir
readdir() beginning with dots instead of files

I have a little problem. I'm reading files from directory and it works, but it read two extra files on …

c readdir
Does readdir() guarantee an order?

I'm getting a list of files on a linux-like system using opendir/readdir. It appears that the directory entries are …

c readdir
Checking if a dir. entry returned by readdir is a directory, link or file. dent->d_type isn't showing the type

I am making a program which is run in a Linux shell, and accepts an argument (a directory), and displays …

c linux readdir opendir dirent.h
PHP readdir and sort

I'm making a little gallery. I want to read the file names off a directory and print the file names …

php sorting preg-replace readdir
How can I read the files in a directory in sorted order?

When I read a directory in Perl with opendir, readdir, and closedir, the readdir function doesn't seem to read the …

perl directory readdir getdirectories