Fix bug and new dir work successfully
when list is a dir it will add a '/' to let user know