initial commit

This commit is contained in:
2025-09-01 20:47:58 +08:00
commit 12c51b5ddb
843 changed files with 475321 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef FILE_UTIL_H
#define FILE_UTIL_H
#include <stdint.h>
#include <fstream>
#include <iostream>
#include <string>
namespace qcloud_cos {
class FileUtil {
public:
//获取文件内容
static std::string GetFileContent(const std::string& path);
//返回文件大小
static uint64_t GetFileLen(const std::string& path);
static bool IsDirectoryExists(const std::string& path);
static bool IsDirectory(const std::string& path);
static std::string GetDirectory(const std::string& path);
static uint64_t GetFileCrc64(const std::string& file);
};
} // namespace qcloud_cos
#endif