Sprig File Path

Sprig File Path #

base #

func base(arg1 string) string
Returns the last element of a path.

clean #

func clean(arg1 string) string
Clean up a path.

dir #

func dir(arg1 string) string
Returns the directory, stripping the last part of the path.

ext #

func ext(arg1 string) string
Returns the file extension.

isAbs #

func isAbs(arg1 string) bool
Check whether a file path is absolute.

osBase #

func osBase(arg1 string) string
Return the last element of a filepath.

osClean #

func osClean(arg1 string) string
Clean up a path.

osDir #

func osDir(arg1 string) string
Return the directory, stripping the last part of the path.

osExt #

func osExt(arg1 string) string
Return the file extension.

osIsAbs #

func osIsAbs(arg1 string) bool
To check whether a file path is absolute.