local

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config) (gost.Directory, error)

Types

type Config

type Config struct {
	BasePath string
}

type Directory

type Directory struct {
	Object
}

func (*Directory) Create

func (d *Directory) Create() error

func (*Directory) Directories

func (d *Directory) Directories() ([]gost.Directory, error)

func (*Directory) Directory

func (d *Directory) Directory(path string) gost.Directory

func (*Directory) File

func (d *Directory) File(path string) gost.File

func (*Directory) Files

func (d *Directory) Files() ([]gost.File, error)

type File

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

func (*File) Close

func (f *File) Close() error

func (*File) Copy

func (f *File) Copy(newName string) error

func (*File) CopyTo

func (f *File) CopyTo(dir gost.Directory, newName ...string) error

func (*File) Directory

func (f *File) Directory() gost.Directory

func (*File) Read

func (f *File) Read(p []byte) (n int, err error)

func (*File) ReadString

func (f *File) ReadString() (string, error)

func (*File) Write

func (f *File) Write(p []byte) (n int, err error)

func (*File) WriteString

func (f *File) WriteString(s string) error

type Object

type Object struct {
	Path string
	Fs   *filesystem
}

func (*Object) Delete

func (f *Object) Delete() error

func (*Object) Exists

func (f *Object) Exists() bool

func (*Object) GetPath

func (f *Object) GetPath() string

func (*Object) Stat

func (f *Object) Stat() (gost.FileInfo, error)

func (*Object) String

func (f *Object) String() string

Jump to

Keyboard shortcuts

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