Adding "/" to MemMapFS in a cleaner way

This commit is contained in:
Steve Francia 2015-12-03 22:29:31 -05:00
parent a9385f2db9
commit f50d862134
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func (m *MemMapFs) getData() map[string]File {
// Root should always exist, right?
// TODO: what about windows?
m.getData()["/"] = &InMemoryFile{name: "/", memDir: &MemDirMap{}, dir: true}
m.data["/"] = &InMemoryFile{name: "/", memDir: &MemDirMap{}, dir: true}
}
return m.data
}