Its best to only transfer images FROM a CF card and to ONLY reformat the card IN the camera. That simple rule will avoid MUCH future problems (sooner or later corruption of card data).
If you insist uploading images to the card, format the card ONLY in camera and be sure to place back in folder structure created by the camera, i.e take a few pics, individually erase them in the camera, then upload to that folder.