37 lines
638 B
C
37 lines
638 B
C
#ifndef _FILEUTIL_
|
|
#define _FILEUTIL_
|
|
|
|
|
|
////////////////////////////////////////////////
|
|
// FileTime
|
|
|
|
typedef long long FileTime;
|
|
|
|
FileTime FileTime_Get(char *filename);
|
|
void FileTime_Set(char *filename,FileTime t);
|
|
void FileTime_Print(FileTime t);
|
|
|
|
|
|
|
|
///////////////////////////////////////////////
|
|
// File
|
|
void File_GetName(char *path,char *name);
|
|
|
|
int File_ExistePath(char *path);
|
|
|
|
int File_EsDirectorio(char *path);
|
|
|
|
int File_EsFichero(char *path);
|
|
|
|
long long File_TamanhoFichero(char *ficheros);
|
|
|
|
int File_CrearDir(char *path);
|
|
|
|
void File_IterateDir(char *path,
|
|
int (*func)(char *path,char *name,void *data),void *data);
|
|
|
|
|
|
|
|
|
|
#endif
|