Top "Readdir" questions

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

Filter filenames by pattern

I need to search for files in a directory that begin with a particular pattern, say "abc". I also need …

perl grep 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 …

c file-type stat readdir opendir
php read directory sorting

i have a little php script that reads a directory and then echos all the files (jpg's in this case) …

php readdir
Efficiently Traverse Directory Tree with opendir(), readdir() and closedir()

The C routines opendir(), readdir() and closedir() provide a way for me to traverse a directory structure. However, each dirent …

c filesystems readdir traversal closedir
fs.readdir ignore directories

I would like to scan the folder, but ignore all the folders/directories that are included in it. All I …

javascript node.js readdir
What reasons are there to prefer glob over readdir (or vice-versa) in Perl?

This question is a spin-off from this one. Some history: when I first learned Perl, I pretty much always used …

perl glob readdir
DT_DIR undefined

I want to check if file returned by readdir is directory. I tried do it using DT_DIR constant (as …

c c99 readdir
Reading directories using readdir_r

I've been checking and fighting with this procedure without success for quite a while, hope you can help me out. …

c readdir
php readdir problem with japanese language file name

I have the following code <?php if ($handle = opendir('C:/xampp/htdocs/movies')) { while (false !== ($file = readdir($handle))) { if ($…

php readdir
Perl readdir in order

Is there any way to guarantee an order from the list returned by readdir? I have the code: opendir(my $…

perl sorting directory readdir