file

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basename

func Basename(fPath string) string

Basename get file basename php basename

func Chmod

func Chmod(filename string, mode os.FileMode) bool

Chmod chmod_file mode php chmod

func Chown

func Chown(filename string, uid, gid int) bool

Chown chown_file php chown

func Dirname

func Dirname(fPath string) string

Dirname get file dirname php dirname

func FileExists

func FileExists(fName string) bool

FileExists check file is exists php file_exists

func FileGetContents

func FileGetContents(fName string) (string, error)

FileGetContents read file content php file_get_contents

func FilePutContents

func FilePutContents(filename string, data string, mode os.FileMode) error

FilePutContents write file content php file_put_contents

func Filesize

func Filesize(fPath string) int64

Filesize get file size php filesize

func IsDir

func IsDir(fName string) bool

IsDir fileName is dir php is_dir

func IsFile

func IsFile(fName string) bool

IsFile fileName is file php is_file

func PathInfo

func PathInfo(fPath string) (map[string]interface{}, error)

PathInfo get file all info php pathinfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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