gotools/godoc/vfs/emptyvfs.go

// 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.
func NewNameSpace() NameSpace {}

type emptyVFS

// Open implements Opener. Since emptyVFS is an empty directory, all
// attempts to open a file should returns errors.
func (e *emptyVFS) Open(path string) (ReadSeekCloser, error) {}

// Stat returns os.FileInfo for an empty directory if the path
// is root "/" or error. os.FileInfo is implemented by emptyVFS
func (e *emptyVFS) Stat(path string) (os.FileInfo, error) {}

func (e *emptyVFS) Lstat(path string) (os.FileInfo, error) {}

// ReadDir returns an empty os.FileInfo slice for "/", else error.
func (e *emptyVFS) ReadDir(path string) ([]os.FileInfo, error) {}

func (e *emptyVFS) String() string {}

func (e *emptyVFS) RootType(path string) RootType {}

func (e *emptyVFS) Name() string {}

func (e *emptyVFS) Size() int64 {}

func (e *emptyVFS) Mode() os.FileMode {}

func (e *emptyVFS) ModTime() time.Time {}

func (e *emptyVFS) IsDir() bool {}

func (e *emptyVFS) Sys() interface{}