Return to Snippet

Revision: 62069
at January 31, 2013 17:34 by zaxbbun


Updated Code
DIR *pDir = opendir(pathname);
if(!pDir){
    return false;
}

dirent *pDirEntry;
struct stat entryStat;
while((pDirEntry = readdir(pDir))){
    // filter hidden files and / or subdirectorys
    if(pDir->dd_dta.attrib & _A_HIDDEN){
        continue;
    }
}

Revision: 62068
at January 31, 2013 17:33 by zaxbbun


Updated Code
DIR *pDir = opendir(pathname);
if(!pDir){
    return false;
}

struct stat entryStat;
dirent *pDirEntry;
while((pDirEntry = readdir(pDir))){
    // filter hidden files and / or subdirectorys
    if(pDir->dd_dta.attrib & _A_HIDDEN){
        continue;
    }
}

Revision: 62067
at January 31, 2013 17:26 by zaxbbun


Initial Code
DIR *pDir = opendir(m_dirName.c_str());
    if(!pDir){
        return false;
    }

    struct stat entryStat;
    dirent *pDirEntry;
    while((pDirEntry = readdir(pDir))){
        // filter hidden files/subdirectorys
        if(pDir->dd_dta.attrib & _A_HIDDEN){
            continue;
        }
    }

Initial URL

                                

Initial Description
filter hidden files/directorys while using readdir() in the windows environment

Initial Title
filter hidden files/directorys while using readdir() in the windows environment

Initial Tags

                                

Initial Language
C