Exemplo n.º 1
0
        internal static void RemoveBoundedContextDataCore(string contextBaseDir)
        {
            if (!Directory.Exists(contextBaseDir))
            {
                return;
            }

            foreach (var pathname in Directory.GetFiles(contextBaseDir, "*.*", SearchOption.AllDirectories)
                     .Where(pathname => Path.GetExtension(pathname).ToLowerInvariant() != ".chorusnotes"))
            {
                File.Delete(pathname);
            }

            FileWriterService.RemoveEmptyFolders(contextBaseDir, true);
        }