initial commits

master
Charles Iliya Krempeaux 2022-12-14 04:22:02 -08:00
parent 63ba97e7ff
commit c77033e639
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import (
const (
errClosed = fck.Error("closed")
errEmptyContent = fck.Error("empty content")
errInternalError = fck.Error("internal error")
errNilByteSlice = fck.Error("nil byte slice")
errNilReader = fck.Error("nil reader")

View File

@ -89,6 +89,10 @@ func (receiver *RegularFile) Stat() (fs.FileInfo, error) {
return nil, errNilReceiver
}
if EmptyContent() == receiver.FileContent {
return nil, errEmptyContent
}
const modeRegularFile = 0
return internalFileInfo{