#include "lcn_types.h"
#include "lcn_istream.h"
#include <apr_hash.h>
#include <apr_tables.h>
#include <apr_time.h>
Go to the source code of this file.
Typedefs | |
typedef lcn_directory_t | lcn_directory_t |
An opaque directory object. | |
Functions | |
lcn_error_t * | lcn_ram_directory_open (lcn_directory_t **dir, apr_hash_t *contents, apr_pool_t *pool) |
Open a new ram-backed directory dir, allocated within pool. | |
lcn_error_t * | lcn_fs_directory_open (lcn_directory_t **dir, const char *path, apr_pool_t *pool) |
Open a new directory object dir which corresponds to the filesystem directory located at path, all allocation is done within pool. | |
lcn_error_t * | lcn_cfs_directory_open (lcn_directory_t **dir, lcn_istream_t *cfsfile, apr_pool_t *pool) |
Open an new compound file stream directory dir, using the stream cfsfile for the backing store, all allocation is done within pool. | |
lcn_error_t * | lcn_directory_list (apr_array_header_t **contents, const lcn_directory_t *d, apr_pool_t *pool) |
Return in contents a list of the files within directory d, allocated in pool. | |
lcn_error_t * | lcn_directory_file_exists (lcn_boolean_t *result, const lcn_directory_t *d, const char *name, apr_pool_t *pool) |
If file name exists in directory d return TRUE in result, otherwise return FALSE in result. | |
lcn_error_t * | lcn_directory_file_modified (apr_time_t *result, const lcn_directory_t *d, const char *name, apr_pool_t *pool) |
Return the time file name in directory d was modified in result, using pool for temporary allocations. | |
lcn_error_t * | lcn_directory_touch_file (lcn_directory_t *d, const char *name, apr_pool_t *pool) |
Update the modification time for file name in directory d, using pool for any temporary allocations. | |
lcn_error_t * | lcn_directory_delete_file (lcn_directory_t *d, const char *name, apr_pool_t *pool) |
Delete file name in directory d, using pool for any temporary allocations. | |
lcn_error_t * | lcn_directory_rename_file (lcn_directory_t *d, const char *from, const char *to, apr_pool_t *pool) |
Rename file from to to within directory d, using pool for temporary allocations. | |
lcn_error_t * | lcn_directory_open_file (lcn_istream_t **result, const lcn_directory_t *d, const char *name, apr_pool_t *pool) |
Open file name in directory d for reading, returning a corresponding stream in result, using pool for all allocation. | |
lcn_error_t * | lcn_directory_close (lcn_directory_t *d, apr_pool_t *pool) |
Close directory d, using pool for any temporary allocation. |
Definition in file lcn_directory.h.
|
Close directory d, using pool for any temporary allocation.
|
|
If file name exists in directory d return pool is used for all temporary allocations. |
|
Return in contents a list of the files within directory d, allocated in pool.
contents will contain |
|
Open a new ram-backed directory dir, allocated within pool.
contents maps from |