Descriptionpath/filepath: support joining (lists of) filepaths
(temporarily reverted to resolve conflict with issue 7181047)
This CL targets the following use cases:
U1: join individual filepaths into a list
U2: join lists of filepaths into a list
U3: append / prepend individual filepaths to a list
JoinFilepaths is added to solve U1, and JoinLists to solve U2. U3 can be solved by a combination of the two. Examples are added for each use case.
Type List is added to reduce the chance of users incorrectly using individual filepaths as lists or the other way around (potentially leading to security issues).
Patch Set 1 #Patch Set 2 : diff -r 3914255bcf5f https://code.google.com/p/go #Patch Set 3 : code review 7141048: path/filepath: support joining (lists of) filepaths #Patch Set 4 : diff -r 3a153f3d2680 https://code.google.com/p/go # |