aboutsummaryrefslogtreecommitdiff
path: root/fs/memory.go
diff options
context:
space:
mode:
Diffstat (limited to 'fs/memory.go')
-rw-r--r--fs/memory.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/memory.go b/fs/memory.go
index 221ff36..2bc11dc 100644
--- a/fs/memory.go
+++ b/fs/memory.go
@@ -40,7 +40,11 @@ type memfsFile struct {
func (memfsFile) Type() FileType { return FFile }
-func (f memfsFile) Open() (io.ReadWriteCloser, error) {
+func (f memfsFile) Open() (io.ReadCloser, error) {
+ return f, nil
+}
+
+func (f memfsFile) OpenWritable() (io.WriteCloser, error) {
return f, nil
}