file_utils

package
v0.95.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileFromBase64 added in v0.89.0

func CreateFileFromBase64(path, b64 string) error

CreateFileFromBase64 writes the decoded base64 data into the given file path, creating all necessary parent directories.

func DownloadFile added in v0.89.0

func DownloadFile(path, url string) error

DownloadFile downloads the content from url into path. It creates parent directories as needed and writes atomically.

func EnsureDir

func EnsureDir(path string) error

func FileExists

func FileExists(path string) bool

func ReadFileToString

func ReadFileToString(path string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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