function deleteSvnFolders (dir) {
    var contents = fs.readdirSync(dir);
    contents.forEach(function (entry) {
        var fullpath = path.join(dir, entry);
        if (isDirectory(fullpath)) {
            if (entry === '.svn') {
                fs.removeSync(fullpath);
            } else module.exports.deleteSvnFolders(fullpath);
        }
    });
}