42 std::string_view regex =
"",
bool recursion =
true);
53FILE*
GetFile(std::string_view path_name,
bool is_binary =
true);
55std::ifstream
Get(std::string_view path_name,
bool is_binary =
true);
63bool ConvertMb2U8(std::string_view path_name, std::string_view out);
121bool Delete(std::string_view path_name,
bool all =
false);
136bool Copy(std::string_view source, std::string_view target);
143std::string
GetExtension(std::string_view path_name,
bool has_dot =
false);
155std::string
GetStem(std::string_view path_name);
void DeleteContent(std::string_view path_name)
删除文件夹内容,但不删除文件夹
uint32_t GetCrc32(std::string_view path_name)
**
FILE * GetFile(std::string_view path_name, bool is_binary=true)
打开一个文件(只读),可能从压缩包内读取
std::string GetStem(std::string_view path_name)
返回文件名不含后缀
bool CheckPathFileModified(std::string_view path_name, std::string_view cache, bool update)
判断路径内的文件是否有修改(包括增加、删除文件)
void GetPathFileAll(std::string_view path, std::vector< std::string > &ret, std::string_view regex="", bool recursion=true)
遍历文件夹所有文件
bool IsExist(std::string_view path_name)
返回文件是否存在
std::string GetPathCurrent()
返回工作目录
std::string GetExtension(std::string_view path_name, bool has_dot=false)
返回文件后缀
std::ifstream Get(std::string_view path_name, bool is_binary=true)
time_t GetLastWriteTime(std::string_view path_name)
返回文件最后修改时间
bool ConvertMb2U8(std::string_view path_name, std::string_view out)
将文本文件从mb转到utf-8
bool CreateDirectory(std::string_view path)
创建目录
bool Delete(std::string_view path_name, bool all=false)
删除文件或路径
bool SaveBuffer(const Buffer &buf, std::string_view path_name)
将内存保存为文件
std::string GetFilename(std::string_view path_name)
返回文件名
std::string GetPathTemp()
返回临时目录
Buffer GetBuffer(std::string_view path_name)
返回文件内存
bool Copy(std::string_view source, std::string_view target)
复制文件
std::vector< std::byte > Buffer