10#ifndef COMMON_UTILS_FILE_HPP
11#define COMMON_UTILS_FILE_HPP
22#elif defined(_WIN32) || defined(_WIN64)
36bool IsFile(
const char* path);
80#elif defined(_WIN32) || defined(_WIN64)
87 throw Exception(
"This function does not support the operating system");
112#if defined(__linux__)
115 throw std::runtime_error(
"Path does not exist!");
118#elif defined(_WIN32) || defined(_WIN64)
121 throw std::runtime_error(
"Path does not exist!");
126 throw Exception(
"This function does not support the operating system");
151#if defined(__linux__)
154 throw std::runtime_error(
"Path does not exist!");
157#elif defined(_WIN32) || defined(_WIN64)
160 throw std::runtime_error(
"Path does not exist!");
165 throw Exception(
"This function does not support the operating system");
192#if defined(__linux__)
197#elif defined(_WIN32) || defined(_WIN64)
203 throw Exception(
"This function does not support the operating system");
231#if defined(__linux__)
275#elif defined(_WIN32) || defined(_WIN64)
281 throw Exception(
"This function does not support the operating system");
310#if defined(__linux__)
326#elif defined(_WIN32) || defined(_WIN64)
347 throw Exception(
"This function does not support the operating system");
bool IsFolder(const char *path)
检查是否文件夹
bool DeleteFolder(const char *path)
删除文件夹函数
bool IsFile(const char *path)
检查是否文件
bool CreateFolder(const char *path)
创建文件夹函数
DirectoryInfo ListDirectory(const char *path)
列出目录信息函数
bool IsExist(const char *path)
检查文件或文件夹是否存在
List< std::string > directories
文件夹列表
List< std::string > files
文件列表