CmisSync.Lib.Config.ConfigMigration.ReplaceTrunkByChunk C# (CSharp) Method

ReplaceTrunkByChunk() private static method

private static ReplaceTrunkByChunk ( ) : void
return void
        private static void ReplaceTrunkByChunk()
        {
            var fileContents = System.IO.File.ReadAllText(ConfigManager.CurrentConfigFile);
            if (fileContents.Contains("<trunkSize>") || fileContents.Contains("</trunkSize>"))
            {
                fileContents = fileContents.Replace("<trunkSize>", "<chunkSize>");
                fileContents = fileContents.Replace("</trunkSize>", "</chunkSize>");
                System.IO.File.WriteAllText(ConfigManager.CurrentConfigFile, fileContents);
                System.Console.Out.WriteLine("Migrated old trunkSize to chunkSize");
            }
        }