lstdirent: protect for path == NULL, rename dirent to ent for dumbass NOMORETHAN80FUCKINGCHARPERLINE rule