Esempio n. 1
0
 /// <summary>
 /// Folders the delete.
 /// </summary>
 /// <param name="path">The path.</param>
 /// <param name="deleteSubElements">if set to <c>true</c> [delete sub elements].</param>
 /// <exception cref="bS.Sked2.Structure.Base.Exceptions.StorageException">Error deleting folder '{path.RealPath}'. - 21</exception>
 /// <exception cref="StorageException">Error deleting folder '{path.RealPath}'. - 21</exception>
 public void FolderDelete(IVirtualPath path, bool deleteSubElements = false)
 {
     try
     {
         workSpaceFileSystem.DeleteDirectory(path.RealPath, deleteSubElements);
     }
     catch (Exception e)
     {
         throw new StorageException(logger, $"Error deleting folder '{path.RealPath}'.", e, 21);
     }
 }