Copy with subfolders

See #558.