As per #274644 , we would like to show the folder entries instead of the individual file entries when the given path is a folder.