wwUtils::GetRelativePath

Returns a relative path (..\file.txt or SubFolder\file.txt) from a full path relative to a given base path.

Similar to Sys(2014) (Minimum Path), but this function preserves path case if the file exists - otherwise lower case is returned.

o.GetRelativePath(lcFolder,lcBasePath)

Return Value

relative path

Parameters

lcFolder
Folder that is to be converted to a relative path.

lcBasePath
Base path used as the base for the relative path.


See also:

Class wwUtils

© West Wind Technologies, 1996-2024 • Updated: 01/06/19
Comment or report problem with topic