Rewriting of part of the UNIX ls command for 42.