Skip to content

Instantly share code, notes, and snippets.

n3dst4 /
Last active Feb 19, 2016
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.

davidwhitney / gist:1027181
Created Jun 15, 2011
Rss feed formatter ActionResult for ASP.NET MVC
View gist:1027181
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;