Closed vkochan closed 4 years ago
Looks like 'ls -F' should work better here, will re-submit it.
Hi, I don't think the ls
based approach is preferable because it also prints other indicators e.g. for symlinks.
Also POSIX does not specify any options for echo
.
So, what about to handle output from "ls" in separate func and append "/" if [ -d ] (actually it was my initial version but -F looked more simpler) ?
It allows to easy identify if the entry is file or directory.
Signed-off-by: Vadym Kochan vadim4j@gmail.com