Remi Pointel <[email protected]> added the comment:
Hi,
I tested with this program in C:
#include <stdio.h>
#include <dirent.h>
#include <fcntl.h>
#include <stdlib.h>
int
main(void)
{
DIR *d;
struct dirent *dp;
int dfd;
if ((d = fdopendir((dfd = open("/tmp", O_RDONLY)))) == NULL) {
fprintf(stderr, "Cannot open /tmp directory\n");
exit(1);
}
while ((dp = readdir(d)) != NULL) {
if (dp->d_name[0] == '.')
continue;
printf("%s, \n", dp->d_name);
}
closedir(d);
return 0;
}
and it seems to correctly works.
Remi.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12852>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com