fs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempDir

func CreateTempDir(fallbacks ...TempDirFallbackOption) (string, []error)

func GetFileSHA1

func GetFileSHA1(path string) ([]byte, error)

GetFileSHA1 get file sha1

func IsDirExists

func IsDirExists(path string) (bool, error)

func IsFileExists

func IsFileExists(path string) (bool, error)

Types

type TempDirFallbackOption

type TempDirFallbackOption = func() tempDirFallback

func WithTempDirFallback

func WithTempDirFallback(dir, pattern string) TempDirFallbackOption

Jump to

Keyboard shortcuts

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