fsutil

package
v0.0.0-...-6b1ef89 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies file src to dst.

func DeleteEmptyDirs

func DeleteEmptyDirs(start string) error

DeleteEmptyDirs remove empty directories starting at given path and going up filesystem hierarchy until it encounters a non-empty directory.

func Exists

func Exists(path string) bool

Exists determines whether given path corresponds to an existing file.

func FilesIn

func FilesIn(dir string) <-chan string

FilesIn returns a channel that produces absolute path of every regular file in dir. Hidden files (starting with ".") are skipped.

func IsEmptyDir

func IsEmptyDir(path string) bool

IsEmptyDir determines whether given path corresponds to an empty directory.

func IsRegularFile

func IsRegularFile(path string) bool

IsRegularFile determines whether given path corresponds to a regular file.

func IsSymlink(path string) bool

IsSymlink determines whether given path corresponds to a symbolic link.

func MD5

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

MD5 calculates MD5 hash of provided file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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