initial commits
parent
63ba97e7ff
commit
c77033e639
|
@ -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")
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue