file

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(name string, err error) bool

Check the existence of the named file and confirm it is not a directory or zero-byte file.

func Remove

func Remove(confirm bool, name string) error

Remove the named file, only when confirm is true.

func RemoveWebP

func RemoveWebP(name string) error

func Vendor

func Vendor() string

Vendor is the absolute path to store webpbin vendor downloads.

Types

type Image

type Image struct {
	ID   uint
	UUID string
	Name string
	Ext  string
	Size int
}

Image is an image object.

func (Image) IsDir

func (i Image) IsDir(dir *directories.Dir) (ok bool)

func (Image) IsExt

func (i Image) IsExt() (ok bool)

func (Image) String

func (i Image) String() string

Jump to

Keyboard shortcuts

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