pathutil

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string, paths []string) (string, error)

Create returns a suitable location relative to which the file with the specified `name` can be written. The first path from the provided `paths` slice which is successfully created (or already exists) is used as a base path for the file. The `name` parameter should contain the name of the file which is going to be written in the location returned by this function, but it can also contain a set of parent directories, which will be created relative to the selected parent path.

func Exists

func Exists(path string) bool

Exists returns true if the specified path exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL