Ejemplo n.º 1
0
        public void CreateDirectory(string physicalDirectory)
        {
            ITransaction transaction = ObtainCurrentTransaction();

            if (transaction != null)
            {
                TransactionalFileWriter fileWriter = GetFileWriterForTransaction(transaction);
                transaction.Enlist(fileWriter);
                fileWriter.CreateDirectory(physicalDirectory);
            }
            else
            {
                Directory.CreateDirectory(physicalDirectory);
            }
        }