From 775d7e605b95ac255f1ad19ccc6e46155367e4d6 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 1 Mar 2024 14:07:53 -0500 Subject: [PATCH] Do not trim file extensions from entries (file extensions are no longer expected) --- src/cli/entryList.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli/entryList.go b/src/cli/entryList.go index e7d04d5..3a82391 100644 --- a/src/cli/entryList.go +++ b/src/cli/entryList.go @@ -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))