Go API Documentation

github.com/go-task/task/v3/internal/filepathext

No package summary is available.

Package

Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Vars

Functions

func IsAbs

Uses: filepath.IsAbs.

func IsExtOnly

IsExtOnly checks whether path points to a file with no name but with an extension, i.e. ".yaml"

Uses: filepath.Base, filepath.Ext.

func SmartJoin

SmartJoin joins two paths, but only if the second is not already an absolute path.

Uses: filepath.Join.

func TryAbsToRel

TryAbsToRel tries to convert an absolute path to relative based on the process working directory. If it can't, it returns the absolute path.

Uses: filepath.Rel, os.Getwd.

Private functions

func isSpecialDir

References: strings.Contains.