Doesn't apply file filter rules to directory.

In Windows uses the information reported by FindFirstFile instead of calling lstat().
This commit is contained in:
Andrea Mazzoleni 2013-01-18 00:15:55 +01:00
parent 5171e93ee5
commit 8204dfad6a
6 changed files with 55 additions and 33 deletions

View file

@ -155,9 +155,8 @@ static inline int open_noatime(const char* file, int flags)
/**
* Check if the specified file is hidden.
*/
static inline int stat_hidden(struct dirent* dd, struct stat* st)
static inline int dirent_hidden(struct dirent* dd)
{
(void)st;
return dd->d_name[0] == '.';
}