package paths

import "github.com/docker/compose/v2/internal/paths"

Index

Functions

func EncompassingPaths

func EncompassingPaths(paths []string) []string

EncompassingPaths returns the minimal set of paths that root all paths from the original collection.

For example, ["/foo", "/foo/bar", "/foo", "/baz"] -> ["/foo", "/baz].

func IsChild

func IsChild(dir string, file string) bool

Source Files

paths.go

Version
v2.29.6
Published
Sep 18, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.