files

package
v0.0.0-...-ec5ace8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2019 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteChangeCommands

func ExecuteChangeCommands(ccs []ChangeCommand)

func ExifDataFromFile

func ExifDataFromFile(path string) *exif.Exif

func LoadFile

func LoadFile(path string, box *packr.Box) (http.File, error)

func LoadImage

func LoadImage(path string, box *packr.Box) (image.Image, error)

func PixbufFromFile

func PixbufFromFile(path string, box *packr.Box) (*gdk.Pixbuf, error)

Types

type Change

type Change struct {
	OriginalPath string   // the original path of the file
	NewPaths     []string // the new [...copied, moved] file paths
}

type ChangeCommand

type ChangeCommand struct {
	Action fileAction
	Path1  string
	Path2  string
}

func GetChangeCommands

func GetChangeCommands(c Change) []ChangeCommand

func GetReverseChangeCommands

func GetReverseChangeCommands(c Change) []ChangeCommand

type File

type File struct {
	Info os.FileInfo
	Path string
}

func ListFiles

func ListFiles(folderPath string) ([]File, error)

Jump to

Keyboard shortcuts

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