mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 07:01:28 +00:00
fix #1433
This commit is contained in:
parent
a89f14d80d
commit
83696a40f6
@ -109,7 +109,7 @@ type memFileInfo struct {
|
|||||||
|
|
||||||
// Name returns the compressed filename.
|
// Name returns the compressed filename.
|
||||||
func (fi *memFileInfo) Name() string {
|
func (fi *memFileInfo) Name() string {
|
||||||
return fi.Name()
|
return fi.FileInfo.Name()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Size returns the raw file content size, not compressed size.
|
// Size returns the raw file content size, not compressed size.
|
||||||
@ -119,7 +119,7 @@ func (fi *memFileInfo) Size() int64 {
|
|||||||
|
|
||||||
// Mode returns file mode.
|
// Mode returns file mode.
|
||||||
func (fi *memFileInfo) Mode() os.FileMode {
|
func (fi *memFileInfo) Mode() os.FileMode {
|
||||||
return fi.Mode()
|
return fi.FileInfo.Mode()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ModTime returns the last modified time of raw file.
|
// 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.
|
// IsDir returns the compressing file is a directory or not.
|
||||||
func (fi *memFileInfo) IsDir() bool {
|
func (fi *memFileInfo) IsDir() bool {
|
||||||
return fi.IsDir()
|
return fi.FileInfo.IsDir()
|
||||||
}
|
}
|
||||||
|
|
||||||
// return nil. implement the os.FileInfo interface method.
|
// return nil. implement the os.FileInfo interface method.
|
||||||
|
Loading…
Reference in New Issue
Block a user