directories

package
v2.0.0-...-73b7ba0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// D are directory paths to UUID named files.
	D = Dir{}
)

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Base   string // base directory path that hosts these other subdirectories
	UUID   string // path to file downloads with UUID as filenames
	Image  string // path to image previews and thumbnails
	File   string // path to webapp generated files such as JSON/XML
	Emu    string // path to the DOSee emulation files
	Backup string // path to the backup archives or previously removed files
	Img000 string // path to screencaptures and previews
	Img150 string // path to 150x150 squared thumbnails
	Img400 string // path to 400x400 squared thumbnails
}

Dir is a collection of paths containing files.

func Files

func Files(name string) Dir

Files initializes the full path filenames for a UUID.

func Init

func Init(create bool) Dir

Init initializes the subdirectories and UUID structure.

Jump to

Keyboard shortcuts

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