initial commits
parent
9f1650927e
commit
62469459b5
|
@ -6,6 +6,7 @@ import (
|
|||
)
|
||||
|
||||
type internalFileInfo struct {
|
||||
sys string
|
||||
mode fs.FileMode
|
||||
modtime time.Time
|
||||
name string
|
||||
|
@ -35,5 +36,5 @@ func (receiver internalFileInfo) Size() int64 {
|
|||
}
|
||||
|
||||
func (receiver internalFileInfo) Sys() any {
|
||||
return nil
|
||||
return receiver.sys
|
||||
}
|
||||
|
|
|
@ -96,6 +96,7 @@ func (receiver *RegularFile) Stat() (fs.FileInfo, error) {
|
|||
const modeRegularFile = 0
|
||||
|
||||
return internalFileInfo{
|
||||
sys: receiver.FileContent.String(),
|
||||
name: receiver.FileName,
|
||||
size: receiver.FileContent.Size(),
|
||||
mode: modeRegularFile,
|
||||
|
|
Loading…
Reference in New Issue