Returns a relative path string from a full path based on a base path provided.
public static string GetRelativePath(string fullPath, string basePath)
Return Value
String of the relative path.
Examples of returned values: test.txt, ..\test.txt, ......\test.txt, ., .., subdir\test.txt
Parameters
fullPath
The path to convert. Can be either a file or a directory
basePath
The base path on which relative processing is based. Should be a directory.
See also:
Class FileUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic