mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-10-27 05:19:58 -04:00
Do not trim file extensions from entries (file extensions are no longer expected)
This commit is contained in:
1 parent
61ca2fffa9
commit
775d7e605b
1 file changed
+1
-2
@@ -54,9 +54,8 @@ func printFileEntry(entry string, lastSlash int, charCounter int, colorAlternato
|
|||||||
}
|
}
|
||||||
colorAlternator = -colorAlternator
|
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 := entry[lastSlash:]
|
||||||
fileEntryName = fileEntryName[:len(fileEntryName)-4]
|
|
||||||
|
|
||||||
if charCounter == 0 { // indent first line of entries for each directory header
|
if charCounter == 0 { // indent first line of entries for each directory header
|
||||||
fmt.Print(strings.Repeat(" ", indent*2))
|
fmt.Print(strings.Repeat(" ", indent*2))
|
||||||
|
|||||||
Reference in new issue
Block a user