2 * Copyright 2001-2004 Brandon Long
5 * ClearSilver Templating System
7 * This code is made available under the terms of the ClearSilver License.
8 * http://www.clearsilver.net/license.hdf
12 #ifndef incl_HPHP_NEO_FILES_H_
13 #define incl_HPHP_NEO_FILES_H_ 1
18 #include <sys/types.h>
19 #include "hphp/neo/ulist.h"
23 typedef int (* MATCH_FUNC
)(void *rock
, const char *filename
);
25 NEOERR
*ne_mkdirs (const char *path
, mode_t mode
);
26 NEOERR
*ne_load_file (const char *path
, char **str
);
27 NEOERR
*ne_load_file_len (const char *path
, char **str
, int *len
);
28 NEOERR
*ne_save_file (const char *path
, char *str
);
29 NEOERR
*ne_remove_dir (const char *path
);
30 NEOERR
*ne_listdir(const char *path
, ULIST
**files
);
31 NEOERR
*ne_listdir_match(const char *path
, ULIST
**files
, const char *match
);
32 NEOERR
*ne_listdir_fmatch(const char *path
, ULIST
**files
, MATCH_FUNC fmatch
,
37 #endif /* incl_HPHP_NEO_FILES_H_ */