示例#1
0
bool UploadItemReader::is_exist_thumbnail(apr_size_t item_id) const
{
    const char *thumbnail_file_path;
    apr_finfo_t info;
    TemporaryPool temp_pool;

    thumbnail_file_path = get_thumb_path(temp_pool.get(), item_id);

    return !APR_STATUS_IS_ENOENT(apr_stat(&info, thumbnail_file_path,
                                          APR_FINFO_MIN, temp_pool.get()));
}
const char *UploadItemIO::get_thumb_path(apr_pool_t *pool,
                                         apr_size_t item_id) const
{
    return get_thumb_path(pool, thumb_dir_path_, item_id);
}