(prefix string, e fs.Entry)
| 142 | } |
| 143 | |
| 144 | func (c *commandList) nameToDisplay(prefix string, e fs.Entry) string { |
| 145 | suffix := "" |
| 146 | if e.IsDir() { |
| 147 | suffix = "/" |
| 148 | } |
| 149 | |
| 150 | if c.long || c.recursive { |
| 151 | return prefix + e.Name() + suffix |
| 152 | } |
| 153 | |
| 154 | return e.Name() |
| 155 | } |
no test coverage detected