return dredge_current_depth(); //Filter and sort the current depth
}
else if (DL_LEN() >= 0) //Any dirs left? (Including root)
{ if (closedir(DL_POP())) //close the directory we just left
goto libfail;
if (DL_LEN() == -1) //If we just popped root,
return dredge_current_depth(); //Filter and sort the current depth
}
else if (DL_LEN() >= 0) //Any dirs left? (Including root)
{ if (closedir(DL_POP())) //close the directory we just left
goto libfail;
if (DL_LEN() == -1) //If we just popped root,