From 83696a40f6d37af56caadde97b90032937817237 Mon Sep 17 00:00:00 2001 From: nkbai Date: Fri, 20 Nov 2015 11:18:45 +0800 Subject: [PATCH] fix #1433 --- memzipfile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/memzipfile.go b/memzipfile.go index cc5e3851..33152ba6 100644 --- a/memzipfile.go +++ b/memzipfile.go @@ -109,7 +109,7 @@ type memFileInfo struct { // Name returns the compressed filename. func (fi *memFileInfo) Name() string { - return fi.Name() + return fi.FileInfo.Name() } // Size returns the raw file content size, not compressed size. @@ -119,7 +119,7 @@ func (fi *memFileInfo) Size() int64 { // Mode returns file mode. func (fi *memFileInfo) Mode() os.FileMode { - return fi.Mode() + return fi.FileInfo.Mode() } // ModTime returns the last modified time of raw file. @@ -129,7 +129,7 @@ func (fi *memFileInfo) ModTime() time.Time { // IsDir returns the compressing file is a directory or not. func (fi *memFileInfo) IsDir() bool { - return fi.IsDir() + return fi.FileInfo.IsDir() } // return nil. implement the os.FileInfo interface method.