diff options
Diffstat (limited to 'common/paths/pathparser.go')
-rw-r--r-- | common/paths/pathparser.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/paths/pathparser.go b/common/paths/pathparser.go index f506eb60f..eceb46b3d 100644 --- a/common/paths/pathparser.go +++ b/common/paths/pathparser.go @@ -480,6 +480,11 @@ func (p *Path) IsLeafBundle() bool { return p.bundleType == PathTypeLeaf } +func (p Path) ForBundleType(t PathType) *Path { + p.bundleType = t + return &p +} + func (p *Path) identifierAsString(i int) string { i = p.identifierIndex(i) if i == -1 { |