Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lists ¶
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 ¶
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 ¶
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>