fs

package
v1.6.7-0...-b28dd99 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDirectory

func DeleteDirectory(dirPath string) error

DeleteDirectory deletes dir from disk.

func DeleteFile

func DeleteFile(filePath string) error

DeleteFile deletes file from disk.

func Exists

func Exists(filePath string) bool

Exists check if file or directory exists on filesystem.

func GetHomeDir

func GetHomeDir() (string, error)

GetHomeDir returns full path to home directory

func MakeDir

func MakeDir(dirPath string) error

MakeDir creates directory on filesystem.

func ReadFile

func ReadFile(filePath string) (string, error)

ReadFile read contents from file and return it as string.

func TempDir

func TempDir() (string, error)

TempDir returns path to temporary directory

func WriteFile

func WriteFile(filePath, contents string) error

WriteFile writes file to disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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