Back to FabImage Library website

You are here: Start » Function Reference » System » File System » ConvertPathToRelative

ConvertPathToRelative


Header: STD.h
Namespace: fil
Module: FoundationLite

Makes the path relative to inBasePath

Syntax

void fil::ConvertPathToRelative
(
	const ftl::String& inPath,
	const ftl::Optional<ftl::Directory> inBasePath,
	ftl::String& outPath
)

Parameters

Name Type Default Description
Input value
inPath const String& absolute path
Input value
inBasePath const Optional<Directory> NIL base path, by default the path of the project or where the program was executed in case of FIL
Output value
outPath String& the resulting relative path