From f50d862134a3a5ddcb8514da3dbeec0b058ec8ba Mon Sep 17 00:00:00 2001 From: Steve Francia Date: Thu, 3 Dec 2015 22:29:31 -0500 Subject: [PATCH] Adding "/" to MemMapFS in a cleaner way --- memmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memmap.go b/memmap.go index 4467136..caa0cf3 100644 --- a/memmap.go +++ b/memmap.go @@ -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 }