Copy headers of a folder in a file.