package
Version:
v2.6.0
Opens a new window with list of versions in this module.
Published: Sep 29, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
IsDir 判断路径是否为目录
@param path string 路径
@return @1 bool 是否为目录
IsFile 判断路径是否为文件
@param path string 路径
@return @1 bool 是否为文件
Split 将路径分割成目录、文件名、文件名(不含后缀)、后缀
@param path string 路径
@return @1 string 目录部分
@return @2 string 文件名部分(含后缀)
@return @3 string 文件名(不含后缀)
@return @4 string 后缀
Stat 获取文件信息
@param filePath string 文件路径
@return @1 stat.FileInfo 文件信息
@return @2 error 错误信息
WriteFile 写文件,目录不存在时自动创建
@param file string 文件路径
@param data []byte 待写入的数据
@return @1 error 错误信息
Source Files
¶
Click to show internal directories.
Click to hide internal directories.