reducers

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Overview

Package to reduce listing of files to File_seq objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReduceBase

func ReduceBase(files []string) (map[string]map[int]string, error)

Function to take listing of files and create the base and file list

Types

type File_seq

type File_seq struct {
	Base      string
	File_num  map[int]string
	File_list []int
	F_seq     string
	Force     bool
}

Struct for the File_seq object, contains the following: -Base is the file with the file numbers replaced with '@' --Base detects files with numbering schema such as: ---filename.1001.jpg ---filename_1001.jpg ---filename 1001.jpg File_num is a map of map[<int of file number>]<string of file num> File_list is ordered array of file number integers F_seq is the condensed listing of file sequence with file numbers listed inside brackets such as: test.[001-003].jpg Non continuous sequence: nonseq.[01,03-05,10,15-17].jpg

func ReduceFileseq

func ReduceFileseq(bases map[string]map[int]string) ([]File_seq, error)

Function to retrieve the base and file list and convert it to a File_seq obj

Jump to

Keyboard shortcuts

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