From 735efcad061d28aa6837f154d192696ad30685cb Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Thu, 23 Oct 2014 13:37:27 +0200 Subject: [PATCH] update File.String() --- file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file.go b/file.go index d44b98b..066a241 100644 --- a/file.go +++ b/file.go @@ -44,8 +44,8 @@ func (f File) Sys() interface{} { func (f File) String() string { if f.isdir { - return fmt.Sprintf("Directory: %s", f.name) + return fmt.Sprintf("Dir : %s", f.path) } 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()) } }