Example #1
0
	void AppendPath(const std::string& path)
	{
		if (m_handle != 0)
		{
			URI newURI(gnome_vfs_uri_append_path(m_handle, path.c_str()));
			Swap(newURI);
		}
	}
Example #2
0
static GnomeVFSURI *content_make_dst_uri(WebsiteContent *content, GenerateWebsiteWorkspace *workspace)
{
    const gchar *dst_dir;
    GnomeVFSURI *path_uri;
    GnomeVFSURI *result_uri;

    g_assert(content);
    g_assert(workspace);

    dst_dir = content_get_dir(content);

    if (dst_dir) {
        path_uri = gnome_vfs_uri_append_path(workspace->build_uri, dst_dir);

    } else {
        path_uri = workspace->build_uri;
        gnome_vfs_uri_ref(workspace->build_uri);
    }

    result_uri = gnome_vfs_uri_append_path(path_uri, content->dst_filename);
    gnome_vfs_uri_unref(path_uri);

    return result_uri;
}