generate linestrings by grouping pipe on folders