file.h 744 B

1234567891011121314151617
  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 *getFilePath(char *path_1, int dep);
  11. AFUN_TOOL_EXPORT char *getFileSurfix(char *path);
  12. AFUN_TOOL_EXPORT char *fileNameToVar(char *name, bool need_free);
  13. AFUN_TOOL_EXPORT char *findPath(char *path, char *env, bool need_free);
  14. AFUN_TOOL_EXPORT char *getExedir(char *pgm, int dep);
  15. AFUN_TOOL_EXPORT uintmax_t getFileSize(char *path);
  16. #endif //AFUN_FILE_H