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.35.1 (latest)
Published
Apr 17, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
3 hours ago

Tools for package owners.