Merge pull request #111 from ahmetalpbalkan/inmemory-fix

update modtime on WriteAt for inmemory driver
This commit is contained in:
Stephen Day 2015-01-27 14:26:14 -08:00
commit fd37df55ff

View file

@ -299,6 +299,7 @@ func (f *file) WriteAt(p []byte, offset int64) (n int, err error) {
f.data = data f.data = data
} }
f.mod = time.Now()
f.data = f.data[:off+len(p)] f.data = f.data[:off+len(p)]
return copy(f.data[off:off+len(p)], p), nil return copy(f.data[off:off+len(p)], p), nil