fsutil

package
v0.0.0-...-b04963e Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDir

func CleanDir(fpath string) error

func CopyFile

func CopyFile(dst, src string) (err error)

func Dir

func Dir(fpath string) string

Dir return the directory path without base name.

func FileExists

func FileExists(fpath string) bool

FileExists whether the path exists.

func HomeDir

func HomeDir() string

func IsDir

func IsDir(fpath string) bool

IsDir whether the path is a directory.

func IsEmpty

func IsEmpty(fpath string) bool

IsEmpty whether the path is empty.

func IsFile

func IsFile(fpath string) bool

IsFile whether the path exists.

func IsSymlink(fpath string) bool

IsSymlink whether the path is a symbolic link.

func MkDirAll

func MkDirAll(fpath string) error

func MustCopyDir

func MustCopyDir(dst, src string) error

func MustMkDir

func MustMkDir(fpath string) error

func Name

func Name(fpath string) string

Name return file/dir name

func Owner

func Owner(fpath string) (uid, gid int, err error)

func PathExists

func PathExists(fpath string) bool

PathExists whether the path exists.

func Scanner

func Scanner(file string) (*bufio.Scanner, error)

func Tar

func Tar(dst, src string) error

func UnTar

func UnTar(dst, src string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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