mirror of https://github.com/spf13/afero.git
Adding "/" to MemMapFS in a cleaner way
This commit is contained in:
parent
a9385f2db9
commit
f50d862134
|
@ -48,7 +48,7 @@ func (m *MemMapFs) getData() map[string]File {
|
||||||
|
|
||||||
// Root should always exist, right?
|
// Root should always exist, right?
|
||||||
// TODO: what about windows?
|
// TODO: what about windows?
|
||||||
m.getData()["/"] = &InMemoryFile{name: "/", memDir: &MemDirMap{}, dir: true}
|
m.data["/"] = &InMemoryFile{name: "/", memDir: &MemDirMap{}, dir: true}
|
||||||
}
|
}
|
||||||
return m.data
|
return m.data
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue