String lets us see file information
()
| 69 | |
| 70 | // String lets us see file information |
| 71 | func (f File) String() string { |
| 72 | if f.isdir { |
| 73 | return fmt.Sprintf("Dir : '%s' - '%s'", f.path, f.name) |
| 74 | } |
| 75 | |
| 76 | return fmt.Sprintf("File: '%s' SIZE: %d MODIFIED: %s ETAG: %s CTYPE: %s", f.path, f.size, f.modified.String(), f.etag, f.contentType) |
| 77 | } |
no outgoing calls