mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-10-27 21:39:56 -04:00
Do not trim file extensions from entries (file extensions are no longer expected)
This commit is contained in:
1 parent
7d5bd76489
commit
fc2a6ab22f
4 files changed
+5
-7
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user