Optimize enum_dir

Signed-off-by: nixnodes <code@eth.si>


Signed-off-by: nixnodes <code@eth.si>