Update modtime on WriteAt for inmemory driver

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
Ahmet Alp Balkan 2015-01-27 14:02:52 -08:00
parent f0e0a080e9
commit bf49cad662

View file

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