fileKit

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileDirSize

func FileDirSize(path string) (int, error)

FileDirSize 获取文件/文件夹下所有文件的大小 @param path 文件/文件夹路径 @return 文件大小[byte], 错误信息

func GetFileTotalLines

func GetFileTotalLines(filePath string) (int, error)

GetFileTotalLines 获取文件总行数<br/> 注意:<br/>

  1. 读取大文件时,会消耗大量内存
  2. 读取商业加密文本时行数上面会异常
  3. 空白行不会被计算

@param filePath 文件路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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