Combines two path strings.
A string containing the combined paths. If one of the specified paths is a zero-length string, this method returns the other path. If path2 contains an absolute path, this method returns path2.
On *nix, processing is delegated to Combine.
On Windows, this method normalized the paths to avoid running into the 260 character limit of a path and converts forward slashes in both path1 and path2 to the platform's directory separator character.
FileUtils Class | NAnt.Core.Util Namespace