Dockerignore.Path (Dockerignore v0.1.0)

Copy Markdown View Source

Provides host-independent POSIX path cleaning and parent generation.

Summary

Functions

Cleans a path using POSIX filepath.Clean semantics.

Returns proper path prefixes from shallowest to deepest.

Functions

clean(path)

@spec clean(binary()) :: binary()

Cleans a path using POSIX filepath.Clean semantics.

parents(path)

@spec parents(binary()) :: [binary()]

Returns proper path prefixes from shallowest to deepest.