All Classes |Grouped Classes |Index

Function make_relative

Converts an absolute path into a path relative to a base path.

	static CL_String CL_PathHelp::make_relative(
		const CL_String & base_path,
		const CL_String & absolute_path,
		PathType  path_type = path_type_file );

Detailed description:

This function is the inverse of CL_FileHelp::make_absolute. Please see the detailed information for make_absolute for more information about behavior.

This function calls normalise() on the base_path and absolute_path-

Example #1 (Windows):