update File.String()
This commit is contained in:
parent
0c00ff98a3
commit
328e74fe93
4
file.go
4
file.go
@ -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())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user