测试用例

This commit is contained in:
2026-08-29 11:39:28 +08:00
parent a0758766c5
commit 8fd65b0de0
19 changed files with 1723 additions and 432 deletions
+22 -6
View File
@@ -21,12 +21,6 @@ typedef struct {
}c_File_t;
/* ------------------------------------------------------------------------------------------------------------------ */
/* */
/* ------------------------------------------------------------------------------------------------------------------ */
/* */
@@ -48,6 +42,20 @@ c_err_t c_File_Seek(c_File_t* file, long long position);
c_err_t c_File_MkDirs(const char* path);
c_err_t c_File_Rmdir(const char* path);
c_err_t c_File_Rmdirs(const char* path);
c_err_t c_File_Delete(const char* fileName);
/**
* @brief 复制指定文件到目标路径(支持大文件流式拷贝)
* @param srcPath 源文件路径
* @param destPath 目标文件路径
* @return 成功返回 C_ERR_OK,失败返回对应错误码
*/
c_err_t c_File_Copy(const char* srcPath, const char* destPath);
/**
* @brief 检查指定路径的文件或目录是否存在
* @param fileName 文件的绝对路径或相对路径
@@ -55,4 +63,12 @@ c_err_t c_File_MkDirs(const char* path);
*/
c_bool_t c_File_IsExist(const char* fileName);
/**
* @brief 移动或重命名文件(支持跨分区移动保底)
* @param oldPath 旧文件路径
* @param newPath 新文件路径
* @return 成功返回 C_ERR_OK,失败返回对应错误码
*/
c_err_t c_File_Move(const char* oldPath, const char* newPath);
#endif /*INCLUDED_C_FILE_H*/