Recursively create and remove directories