Displaying 1 result from an estimated 1 matches for "dos_readdirnam".
Did you mean:
dos_readdirname
2001 Apr 14
4
Code to hide inaccessible files/directories
...= (Dir *)malloc(sizeof(Dir));
if (!dirp) {
closedir(p);
return(NULL);
}
fullPath = (char *)malloc(2048);
if (!fullPath) {
closedir(p);
return(NULL);
}
dirp->pos = dirp->numentries = dirp->mallocsize = 0;
dirp->data = dirp->current = NULL;
while ((n = dos_readdirname(p)))
{
int l = strlen(n)+1;
/* If it's a vetoed file, pretend it doesn't even exist */
if (use_veto && conn && IS_VETO_PATH(conn, n)) continue;
/* hack to hide files that the user doesn't have read perms to */
snprintf(fullPath,2048,"%s/%s/%s...