fs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Exists(path string) bool
	Mkdir(path string) error
	Write(path string, content []byte) (FileInfo, error)
}

type FileInfo

type FileInfo struct {
	Path string
	Size int64
}

type Local

type Local struct {
}

func NewLocal

func NewLocal() *Local

func (*Local) Exists

func (*Local) Exists(path string) bool

func (*Local) Mkdir

func (*Local) Mkdir(path string) error

func (*Local) Write

func (*Local) Write(path string, content []byte) (FileInfo, error)

Jump to

Keyboard shortcuts

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