rishikesh
rishikesh

Reputation:

Using DOS Prompt and via' FTP copying files on to the server

I would like when we Copy files on to the server via FTP the size of the file changes. What is the reason behind this. Does the change in the file size can make the files corrupt and the FTP process Fails ?

Upvotes: 1

Views: 887

Answers (1)

Jonathan Leffler
Jonathan Leffler

Reputation: 753695

Most likely, you are copying between Windows and Unix, and the difference in size is due to the difference between CRLF and just LF for line endings.

If it is crucial to preserve the line endings, use BIN (binary) mode to transfer the data. The alternative is ASC (ASCII) mode, where the systems map line endings.

Upvotes: 5

Related Questions