Added copyFolder functionality.