Topic "Copied file gets incorrect name"

Author Message
waytenhwaet

Guest


Using SCP I copied a file named
Code:
deleteme.
from a remote Linux server to my local machine but the copied file got named
Code:
deleteme%2E

Then I copied a file
Code:
qwerty%2e
to the remote where it got named
Code:
qwerty.

I expected the filenames not to change.

WinSCP 5.9 (Build 6786) on Windows 8.1 was used.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License