Example #1
0
        public void DeleteDirectoryIfExists(string pathToDirectory)
        {
            DirectoryInfo directoryInfo = new DirectoryInfo(pathToDirectory);

            if (_fileSystemOperations.Exists(directoryInfo))
            {
                _fileSystemOperations.Delete(directoryInfo);
            }
        }