Add trailing slash to directory name in listImpl