util_file

package
v1.27.7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2File

func Bytes2File(path string, bytes []byte)

func CreateFolderIfMissing

func CreateFolderIfMissing(path string, notPossibleMsg string)

func CreateFolderIfNotExists

func CreateFolderIfNotExists(path string, notPossibleMsg string)

func DeleteIfExists

func DeleteIfExists(path string, notDeterminableMsg string)

func Exists

func Exists(path string, notDeterminableMsg string) bool

func File2String

func File2String(path string) string

func ListFilesInFolder

func ListFilesInFolder(path string) []os.DirEntry

func ListFilesInFolderWithSuffix

func ListFilesInFolderWithSuffix(path string, suffix string) []os.DirEntry

func ListFolder

func ListFolder(path string) []os.DirEntry

func SanitizePath

func SanitizePath(filename string) string

func String2File

func String2File(path string, data string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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