update File.String()

This commit is contained in:
Christoph Polcin 2014-10-23 13:37:27 +02:00
parent 48d4d0ff90
commit 735efcad06

View File

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