Documentation
¶
Index ¶
- Constants
- func Abs(path string) (string, error)
- func Base(path string) string
- func Chdir(dir string, vfs bool) error
- func Clean(path string) string
- func Close()
- func ConvertVFSPath(path string) (string, bool)
- func Create(name string) (absfs.File, error)
- func Dir(path string) string
- func Ext(path string) string
- func FromSlash(path string) string
- func GetTempDir(vfs bool) string
- func Getwd(vfs bool) (string, error)
- func GlobalOSFS() absfs.FileSystem
- func GlobalVFS() absfs.FileSystem
- func InitGlobalBox()
- func IsAbs(path string) bool
- func IsPathSeparator(c uint8, vfs bool) bool
- func IsVFS(fi fs.FileInfo) bool
- func IsVFSPath(path string) bool
- func Join(elem ...string) string
- func ListSeparator(vfs bool) uint8
- func Lstat(name string) (fs.FileInfo, error)
- func MakeVFSPath(path string) string
- func Mkdir(name string, perm fs.FileMode) error
- func MkdirAll(name string, perm fs.FileMode) error
- func Open(name string) (absfs.File, error)
- func OpenFile(name string, flag int, perm fs.FileMode) (absfs.File, error)
- func ReadDir(dirname string) ([]os.DirEntry, error)
- func ReadFile(filename string) ([]byte, error)
- func Remove(name string) error
- func RemoveAll(path string) error
- func Rename(oldpath, newpath string) error
- func SameFile(fi1, fi2 os.FileInfo) bool
- func Separator(vfs bool) uint8
- func Split(path string) (string, string)
- func Stat(name string) (fs.FileInfo, error)
- func ToSlash(path string) string
- func Truncate(name string, size int64) error
- func WalkDir(root string, fn fs.WalkDirFunc) error
- func WriteFile(filename string, data []byte, perm fs.FileMode) error
- type Box
- func (b *Box) Abs(path string) (string, error)
- func (b *Box) Chdir(dir string, vfsMode bool) error
- func (b *Box) Close()
- func (b *Box) Create(name string) (absfs.File, error)
- func (b *Box) GetTempDir(vfsMode bool) string
- func (b *Box) Getwd(vfsMode bool) (string, error)
- func (b *Box) IsPathSeparator(c uint8, vfsMode bool) bool
- func (b *Box) ListSeparator(vfsMode bool) uint8
- func (b *Box) Lstat(name string) (fs.FileInfo, error)
- func (b *Box) Mkdir(name string, perm fs.FileMode) error
- func (b *Box) MkdirAll(name string, perm fs.FileMode) error
- func (b *Box) OSFS() absfs.FileSystem
- func (b *Box) Open(name string) (absfs.File, error)
- func (b *Box) OpenFile(name string, flag int, perm fs.FileMode) (absfs.File, error)
- func (b *Box) ReadDir(dirname string) ([]fs.DirEntry, error)
- func (b *Box) ReadFile(filename string) ([]byte, error)
- func (b *Box) Remove(name string) error
- func (b *Box) RemoveAll(path string) error
- func (b *Box) Rename(oldpath, newpath string) error
- func (b *Box) Separator(vfsMode bool) uint8
- func (b *Box) Stat(name string) (fs.FileInfo, error)
- func (b *Box) Truncate(name string, size int64) error
- func (b *Box) VFS() absfs.FileSystem
- func (b *Box) WalkDir(root string, fn fs.WalkDirFunc) error
- func (b *Box) WriteFile(filename string, data []byte, perm fs.FileMode) error
- type File
Constants ¶
View Source
const VFSPrefix = "vfs://"
Variables ¶
This section is empty.
Functions ¶
func ConvertVFSPath ¶
func GetTempDir ¶
func GlobalOSFS ¶
func GlobalOSFS() absfs.FileSystem
func GlobalVFS ¶
func GlobalVFS() absfs.FileSystem
func InitGlobalBox ¶
func InitGlobalBox()
func IsPathSeparator ¶
func ListSeparator ¶
func MakeVFSPath ¶
Types ¶
type Box ¶
type Box struct {
// contains filtered or unexported fields
}
func (*Box) GetTempDir ¶
func (*Box) ListSeparator ¶
func (*Box) OSFS ¶
func (b *Box) OSFS() absfs.FileSystem
func (*Box) VFS ¶
func (b *Box) VFS() absfs.FileSystem
Directories
¶
Path | Synopsis |
---|---|
Package github.com/capnspacehook/pandorasbox/ioutil implements the standard library ioutil functions for the absfs.FileSystem interface.
|
Package github.com/capnspacehook/pandorasbox/ioutil implements the standard library ioutil functions for the absfs.FileSystem interface. |
Click to show internal directories.
Click to hide internal directories.