Fixed bug where 0 length files weren't being copied.