NewNameSpace returns a NameSpace pre-initialized with an empty emulated directory mounted on the root mount point "/". This allows directory traversal routines to work properly even if a folder is not explicitly mounted at root by the user.
// using NewNameSpace. This should work fine. t2 := vfs.NewNameSpace() t2.Bind("/fs1", mount, "/", vfs.BindReplace)