fs

package
v0.68.0-prev2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIsADirectory = errors.New("is a directory")

Functions

func EnsureDir

func EnsureDir(path string) error

EnsureDir will make sure a directory exists or is created at the given path.

func FileExists

func FileExists(path string) (bool, error)

FileExists similar to PathExists, but ensures the path is to a file, not a directory.

func PathExists

func PathExists(path string) (bool, error)

PathExists returns whether a link exists at the given path.

func ReadFile

func ReadFile(path string) ([]byte, error)

func WriteFile

func WriteFile(path string, content []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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