funFilesystem

package
v0.0.0-...-ed2e16d Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basename

func Basename(path, suffix string) string

*

  • basename ( string $path [, string $suffix ] ) : string

func Chmod

func Chmod(fileName string, model os.FileMode) bool

*

不建议外部使用 直接使用 os.Chmod 即可

func Chown

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

*

不建议外部使用  直接使用os.Chown 即可
 window 下不可用
 On Windows, it always returns the syscall.EWINDOWS error, wrapped in *PathError.

func Copy

func Copy(source string, dest string) bool

func Delete

func Delete(path string) bool

*

不建议外部使用 直接使用os.Remove即可

func Dirname

func Dirname(path string) string

*

不建议外部使用 直接使用filepath.Dir即可

func File_exits

func File_exits(path string) bool

func File_exits_detail

func File_exits_detail(path string) (bool, error)

func File_get_contents

func File_get_contents(filename string) string

func File_get_contents_detail

func File_get_contents_detail(filename string) (string, error)

func Filemtime

func Filemtime(path string) int64

获取文件修改时间 返回unix时间戳

func Mkdir

func Mkdir(path string, model os.FileMode, recursive bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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