commit | 616c278b70c654f57890cf134f1726ffcdd73d8c | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Jul 14 08:16:00 2017 -0700 |
committer | Colin Cross <ccross@android.com> | Fri Jul 14 08:16:00 2017 -0700 |
tree | 690866936c3114c504e593e2aba51e08cc6b4fd4 | |
parent | 5f303b9ee87aac7a1fe66b0a8081fb95f8c02604 [diff] |
Add . and / to MockFs Add the final directory to MockFs so that Exists() on . and / returns true. Test: java_test.go Change-Id: I1320f4f267ee6b6a7dbf1132630df306602e84d8
diff --git a/pathtools/fs.go b/pathtools/fs.go index 4ed91ff..4f98c6e 100644 --- a/pathtools/fs.go +++ b/pathtools/fs.go
@@ -41,6 +41,7 @@ fs.dirs[dir] = true dir = filepath.Dir(dir) } + fs.dirs[dir] = true } for f := range fs.files {