replace a list with dirs with new content