file.h 580 B

123456789101112131415
  1. #ifndef AFUN_FILE_H
  2. #define AFUN_FILE_H
  3. #include "aFunToolExport.h"
  4. /* 文件处理工具 */
  5. AFUN_TOOL_EXPORT int checkFile(char *path);
  6. AFUN_TOOL_EXPORT time_t getFileMTime(char *path);
  7. AFUN_TOOL_EXPORT char *joinPath(char *path, char *name, char *suffix);
  8. AFUN_TOOL_EXPORT char *getFileName(char *path_1);
  9. AFUN_TOOL_EXPORT char *getFileNameWithPath(char *path_1);
  10. AFUN_TOOL_EXPORT char *getFileSurfix(char *path);
  11. AFUN_TOOL_EXPORT char *fileNameToVar(char *name, bool need_free);
  12. AFUN_TOOL_EXPORT char *findPath(char *path, char *env, bool need_free);
  13. #endif //AFUN_FILE_H