files

package
v0.0.0-...-390bab0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE = iota
	DIR
	NOEXIST
	LnFILE
	LnDIR
	UNKNOWN
)

Variables

View Source
var FTYPE = [...]string{"FILE", "DIR", "NOEXIST", "LnFILE", "LnDIR", "UNKNOWN"}

Functions

func Copy

func Copy(dst io.Writer, src io.Reader, pbar *pb.ProgressBar) (md5sum []byte, err error)

从io.Copy拷贝并重构

func DirCreate

func DirCreate(pathname string, mode uint32) bool

func FileSize

func FileSize(filename string) int64

func FileType

func FileType(filename string) (int, uint32)

func Filedir

func Filedir(filename string) string

func Filename

func Filename(filename string) string

func GetCurrentDirectory

func GetCurrentDirectory() (string, error)

func GetMd5sum

func GetMd5sum(filename string) []byte

func Home

func Home() (string, error)

func IsBusy

func IsBusy(err error) bool

func PathExists

func PathExists(path string) (bool, error)

func RecvPathCheck

func RecvPathCheck(path string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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