Do not trim file extensions from entries (file extensions are no longer expected)

This commit is contained in:
2024-03-01 14:07:53 -05:00
parent 7d5bd76489
commit fc2a6ab22f
4 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -54,9 +54,8 @@ func printFileEntry(entry string, lastSlash int, charCounter int, colorAlternato
}
colorAlternator = -colorAlternator
// trim the containing directory and file extension from the entry to determine fileEntryName
// trim the containing directory from the entry to determine fileEntryName
fileEntryName := entry[lastSlash:]
fileEntryName = fileEntryName[:len(fileEntryName)-4]
if charCounter == 0 { // indent first line of entries for each directory header
fmt.Print(strings.Repeat(" ", indent*2))