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