|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef FILESYS_DWA20011025_H |
|
#define FILESYS_DWA20011025_H |
|
|
|
#include "hash.h" |
|
#include "lists.h" |
|
#include "object.h" |
|
#include "pathsys.h" |
|
#include "timestamp.h" |
|
|
|
|
|
typedef struct file_info_t |
|
{ |
|
OBJECT * name; |
|
char is_file; |
|
char is_dir; |
|
char exists; |
|
timestamp time; |
|
LIST * files; |
|
} file_info_t; |
|
|
|
typedef void (*scanback)( void * closure, OBJECT * path, int found, |
|
timestamp const * const ); |
|
|
|
|
|
void file_build1( PATHNAME * const f, string * file ) ; |
|
void file_dirscan( OBJECT * dir, scanback func, void * closure ); |
|
file_info_t * file_info( OBJECT * const path, int * found ); |
|
int file_is_file( OBJECT * const path ); |
|
int file_mkdir( char const * const path ); |
|
file_info_t * file_query( OBJECT * const path ); |
|
void file_remove_atexit( OBJECT * const path ); |
|
void file_supported_fmt_resolution( timestamp * const ); |
|
int file_time( OBJECT * const path, timestamp * const ); |
|
|
|
|
|
void file_query_posix_( file_info_t * const ); |
|
|
|
void file_done(); |
|
|
|
#endif |
|
|