AddSize adds file's size to output
()
| 2259 | |
| 2260 | // AddSize adds file's size to output |
| 2261 | func (l *ListFormat) AddSize() { |
| 2262 | l.AppendOutput(func(entry *ListJSONItem) string { |
| 2263 | return strconv.FormatInt(entry.Size, 10) |
| 2264 | }) |
| 2265 | } |
| 2266 | |
| 2267 | // normalisePath makes sure the path has the correct slashes for the current mode |
| 2268 | func (l *ListFormat) normalisePath(entry *ListJSONItem, remote string) string { |