initial commits

master
Charles Iliya Krempeaux 2022-12-14 09:50:42 -08:00
parent 9f1650927e
commit 62469459b5
2 changed files with 3 additions and 1 deletions

View File

@ -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
} }

View File

@ -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,