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