Recode a little part of ls.