submitted a patch from Andreas Dahl to make folder deleting work with