vfsapi

package
v0.0.0-...-a71acd6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(fs vfs.Filesystem, path string) (string, error)

func BadRemove

func BadRemove(fs vfs.Filesystem, path string) error

func ChangeDirectory

func ChangeDirectory(fs *vfs.Filesystem, path string) error

func Exists

func Exists(fs vfs.Filesystem, path string) (bool, error)

func FsCheck

func FsCheck(fs vfs.Filesystem) error

func Mkdir

func Mkdir(fs vfs.Filesystem, path string) error

func Remove

func Remove(fs vfs.Filesystem, path string) error

func Rename

func Rename(fs vfs.Filesystem, oldPath, newPath string) error

Types

type DirectoryIsNotEmpty

type DirectoryIsNotEmpty struct {
	Name string
}

func (DirectoryIsNotEmpty) Error

func (d DirectoryIsNotEmpty) Error() string

type File

type File struct {
	// contains filtered or unexported fields
}

func Open

func Open(fs vfs.Filesystem, path string, create bool) (*File, error)

func (File) InodePtr

func (f File) InodePtr() int64

func (File) IsDir

func (f File) IsDir() bool

func (File) Name

func (f File) Name() string

func (*File) Read

func (f *File) Read(data []byte) (int, error)

func (*File) ReadAll

func (f *File) ReadAll() (int, []byte, error)

func (File) ReadDir

func (f File) ReadDir() ([]FileInfo, error)

func (File) Size

func (f File) Size() int64

func (*File) Write

func (f *File) Write(data []byte) (int, error)

type FileInfo

type FileInfo struct {
	// contains filtered or unexported fields
}

func (FileInfo) IsDir

func (fi FileInfo) IsDir() bool

func (FileInfo) Name

func (fi FileInfo) Name() string

func (FileInfo) Size

func (fi FileInfo) Size() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL