update File.String()

This commit is contained in:
Christoph Polcin 2014-10-27 17:02:00 +01:00
parent 0c00ff98a3
commit 328e74fe93

View File

@ -45,8 +45,8 @@ func (f File) Sys() interface{} {
func (f File) String() string {
if f.isdir {
return fmt.Sprintf("Dir : %s", f.path)
return fmt.Sprintf("Dir : '%s' - '%s'", f.path, f.name)
} else {
return fmt.Sprintf("File: %s SIZE: %d MODIFIED: %s", f.path, f.size, f.modified.String())
return fmt.Sprintf("File: '%s' SIZE: %d MODIFIED: %s", f.path, f.size, f.modified.String())
}
}