lsfile

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.0.8

func CopyFile(dstName, srcName string) (written int64, err error)

CopyFile copy files

func FileInfo added in v0.0.18

func FileInfo(file string) (os.FileInfo, error)

FileInfo 获取文件信息

func FileSize added in v0.0.18

func FileSize(file string) (int64, error)

FileSize 获取文件大写

func GetCurrentExecutePath

func GetCurrentExecutePath() (string, error)

GetCurrentExecutePath 获取当时运行程序的目录 get current exe path

func GetExecuteFileName

func GetExecuteFileName() (string, error)

GetExecuteFileName 获取当时运行程序的名称 get exe file name

func GetFileList added in v0.0.10

func GetFileList(root string) ([]string, error)

GetFileList browse directory

func GetFileListWithFilter added in v0.0.10

func GetFileListWithFilter(root string, filter []string) ([]string, error)

GetFileListWithFilter browse directory

func PathExists added in v0.0.10

func PathExists(path string) (bool, error)

PathExists test path or file is exists

func WriteFile added in v0.0.8

func WriteFile(fileName string, Content string) error

WriteFile 写文件(一次性写入,原文件存时则覆盖内容)

func WriteFileAppend added in v0.0.8

func WriteFileAppend(fileName string, Content string) error

WriteFileAppend 写文件(追加写入内容到末尾)

Types

This section is empty.

Jump to

Keyboard shortcuts

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