Click or drag to resize

FileUtilityRenameBaseDirectory Method

Replaces the base directory of a path if it starts with a specified source directory.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static string RenameBaseDirectory(
	string fileName,
	string oldDirectory,
	string newDirectory
)

Parameters

fileName  String
The path to update.
oldDirectory  String
The original base directory.
newDirectory  String
The new base directory.

Return Value

String
The updated path, or the original path if the base directory does not match.
See Also