Copied file gets incorrect name

Advertisement

waytenhwaet
Guest

Copied file gets incorrect name

Using SCP I copied a file named
deleteme.
from a remote Linux server to my local machine but the copied file got named
deleteme%2E
Then I copied a file
qwerty%2e
to the remote where it got named
qwerty.
I expected the filenames not to change.

WinSCP 5.9 (Build 6786) on Windows 8.1 was used.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,541
Location:
Prague, Czechia

Re: Copied file gets incorrect name

The reason behind this is that it's not trivial in Windows to create a file ending with dot. Historically it was not allowed. It's possible now, but it's complicated, so WinSCP preserves the dot this way. The same way it preserves other not-allowed characters in files names (like slashes and colons).

You can disable this in transfer settings. But you will lose the dot:
https://winscp.net/eng/docs/ui_transfer_custom#filename_modification

Reply with quote

Advertisement

You can post new topics in this forum