Skip to content

Instantly share code, notes, and snippets.

@davidwhitney
davidwhitney / gist:1027181
Created June 15, 2011 14:08
Rss feed formatter ActionResult for ASP.NET MVC
using System;
using System.IO;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Text;
using System.Web.Mvc;
using System.Xml;
using System.Xml.Linq;
@n3dst4
n3dst4 / README.md
Last active February 19, 2016 16:29
Using node-retry to work around errors in Windows when using rimraf

Deleting a tree of folders using rimraf can be pretty fraught on MS Windows; the OS itself can lock files randomly, and there may be various processes getting in the way, like virus checkers or cloud file syncing apps. rimraf itself will do an exponential-backoff-and-retry for EBUSY and ENOTEMPTY errors on Windows, but you can still see EPERM and others. If you want to do exponential-backoff-and-retry for any error, see the below recipe, using node-retry.