fs

package
v0.74.0-preview.11 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: AGPL-3.0 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