1
0

file.hpp 971 B

1234567891011121314151617181920
  1. #ifndef AFUN_FILE_HPP
  2. #define AFUN_FILE_HPP
  3. #include "aFunToolExport.h"
  4. /* 文件处理工具 */
  5. AFUN_TOOL_EXPORT int checkFile(const char *path);
  6. AFUN_TOOL_EXPORT time_t getFileMTime(const char *path);
  7. AFUN_TOOL_EXPORT char *joinPath(const char *path, const char *name, const char *suffix);
  8. AFUN_TOOL_EXPORT char *getFileName(const char *path_1);
  9. AFUN_TOOL_EXPORT char *getFileNameWithPath(const char *path_1);
  10. AFUN_TOOL_EXPORT char *getFilePath(const char *path_1, int dep);
  11. AFUN_TOOL_EXPORT char *getFileSurfix(const char *path);
  12. AFUN_TOOL_EXPORT char *fileNameToVar(char *name, bool need_free);
  13. AFUN_TOOL_EXPORT char *findPath(char *path, const char *env, bool need_free);
  14. AFUN_TOOL_EXPORT char *getExedir(int dep);
  15. AFUN_TOOL_EXPORT uintmax_t getFileSize(const char *path);
  16. AFUN_TOOL_EXPORT bool isCharUTF8(const char *str);
  17. AFUN_TOOL_EXPORT FILE *fileOpen(const char *path_, const char *mode_);
  18. AFUN_TOOL_EXPORT int fileClose(FILE *file);
  19. #endif //AFUN_FILE_HPP