initial commits
parent
63ba97e7ff
commit
c77033e639
|
@ -6,6 +6,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
errClosed = fck.Error("closed")
|
errClosed = fck.Error("closed")
|
||||||
|
errEmptyContent = fck.Error("empty content")
|
||||||
errInternalError = fck.Error("internal error")
|
errInternalError = fck.Error("internal error")
|
||||||
errNilByteSlice = fck.Error("nil byte slice")
|
errNilByteSlice = fck.Error("nil byte slice")
|
||||||
errNilReader = fck.Error("nil reader")
|
errNilReader = fck.Error("nil reader")
|
||||||
|
|
|
@ -89,6 +89,10 @@ func (receiver *RegularFile) Stat() (fs.FileInfo, error) {
|
||||||
return nil, errNilReceiver
|
return nil, errNilReceiver
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if EmptyContent() == receiver.FileContent {
|
||||||
|
return nil, errEmptyContent
|
||||||
|
}
|
||||||
|
|
||||||
const modeRegularFile = 0
|
const modeRegularFile = 0
|
||||||
|
|
||||||
return internalFileInfo{
|
return internalFileInfo{
|
||||||
|
|
Loading…
Reference in New Issue