gfile

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src, dest string, dirMode os.FileMode) error

CopyDir is a utility to assist with copying a directory from src to dest. Note that directory permissions are not maintained, but the permissions of the files in those directories are.

func CopyFile

func CopyFile(src, dest string) error

CopyFile is a utility to assist with copying a file from src to dest. Note that file permissions are maintained.

func FileExist

func FileExist(path string) bool

FileExist checks whether a file or directory exists. It returns false when the file or directory does not exist.

func FileSize

func FileSize(file string) (int64, error)

FileSize returns file size in bytes and possible error.

func GetProcPwd

func GetProcPwd() string

GetProcPwd returns the complete directory of the current execution file

func GetPwd

func GetPwd() string

GetPwd returns the complete directory of the current path

func IsDir

func IsDir(dir string) bool

IsDir returns true if given path is a directory, or returns false when it's a file or does not exist.

func IsFile

func IsFile(filePath string) bool

IsFile returns true if given path is a file, or returns false when it's a directory or does not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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