fix "ls" method, problem when file in the folders with same name