Пример #1
0
        private static void LegacyDataDirSupport(RavenConfiguration configuration)
        {
            if (System.IO.Directory.Exists(configuration.Core.DataDirectory))
            {
                return;
            }

            var directory = FilePathTools.ApplyWorkingDirectoryToPathAndMakeSureThatItEndsWithSlash(configuration.Core.WorkingDirectory, "~\\Data");

            if (System.IO.Directory.Exists(directory) == false)
            {
                return;
            }

            configuration.Core.DataDirectory = "~\\Data";
        }