osutils

package
v0.0.0-...-409f71a Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(filename string) (bool, error)

func RegularFileExists

func RegularFileExists(filename string) (bool, error)

func WriteFileIfNoFileExists

func WriteFileIfNoFileExists(name string, data []byte, perm os.FileMode) error

WriteFileIfNoFileExists checks if a file exists via RegularFileExists (returning an error if a file exists but not being a regular file). If it exists, it returns, otherwise, it writes the given content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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