mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 12:01:29 +00:00
commit
25320bf86a
@ -111,7 +111,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.
|
||||
@ -121,7 +121,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.
|
||||
@ -131,7 +131,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.
|
||||
|
Loading…
Reference in New Issue
Block a user