Generate decoder to translate stat().st_mode to ls-l-filetype