FileUtilityRenameBaseDirectory Method |
Replaces the base directory of a path if it starts with a specified source directory.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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
StringThe updated path, or the original path if the base directory does not match.
See Also