fsutil

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) bool

Returns true if os.Stat doesn't return an error and the path is a directory.

func FileExists

func FileExists(path string) bool

Returns true if os.Stat doesn't return an error and the path is a regular file.

func PathExists

func PathExists(path string) bool

Return true if os.Stat doesn't return an error.

func WriteFileAtomic

func WriteFileAtomic(data []byte, tmpPath, finalPath string) error

Write a file atomically on a POSIX file system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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