filelist

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 7 modules, 18 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lists

type Lists struct {
	Files    []string
	Symlinks []string
	Dirs     []string
}

Lists is a structure holding relative paths to files, symlinks and directories. The members of this structure can be later combined with common.MapFilesToDirectories to get some meaningful paths.

func (*Lists) GenerateFilelist

func (list *Lists) GenerateFilelist(out io.Writer) error

GenerateFilelist generates a filelist, duh. And writes it to a given writer. The format of generated file is described in filelist.ParseFilelist.

func (*Lists) ParseFilelist

func (list *Lists) ParseFilelist(filelist io.Reader) error

ParseFilelist parses a given filelist. The filelist format is rather simple: <BLOCK> <BLOCK> ...

Where "<BLOCK>" is as follows: <HEADER> <LIST>

Where "<HEADER>" is as follows: <KIND> (<COUNT>)

Where "<KIND>" is either "files", "symlinks" or "dirs" and "<COUNT>" tells how many items are in the following list. "<LIST>" is as follows: <1st ITEM> <2nd ITEM> ... <COUNTth ITEM> <EMPTY LINE>

Jump to

Keyboard shortcuts

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