Was having trouble changing permissions if there were directories in the rip dir