Allow directory copy rather than just file copy.