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