files

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package files implements generic file tools missing from the standard library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(filePath string) bool

Exists returns true if file or directory exists.

func ReplaceTildeInDir

func ReplaceTildeInDir(dir string) (string, error)

ReplaceTildeInDir by the user's home directory. Returns dir if it doesn't start with "~".

It returns an error if `dir` has an unknown user (e.g: `~unknown/...`)

Types

This section is empty.

Jump to

Keyboard shortcuts

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