Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Unexpected behaviour on "put filenamen ./" command

What version of WinSCP? Are you using the latest one?
See Issue 2056 – File on local network share treated as folder when uploading

If you have the latest version: Is there anything special about the file? Isn't it a symbolic link? Is it a network drive? Do you have the same problem with other files in the same folder?
l.menci@ingeinformatica.it

Unexpected behaviour on "put filenamen ./" command

Hi,

I had an unexpected behaviour on the command in object.
I expected as all other times I used the same command, that the file would be copied into the remote folder where I was, but it created a new folder with the file name, and it tried to put the file in an unnamed file. This is the log (loglevel -1) I had:
> 2024-05-06 12:01:50.485 Script: cd TEST
. 2024-05-06 12:01:50.485 Changing directory to "TEST".
. 2024-05-06 12:01:50.579 Trying to open directory "/IN/TEST".
. 2024-05-06 12:01:50.644 Getting current directory name.
< 2024-05-06 12:01:50.644 Script: /IN/TEST
> 2024-05-06 12:01:50.644 Script: put FNVAT00R20240502160455565.txt ./
. 2024-05-06 12:01:50.644 Copying 1 files/directories to remote directory "./" - total size: 180
. 2024-05-06 12:01:50.644 File: 'FNVAT00R20240502160455565.TXT' [2024-05-02T16:04:48.000Z] [180]
. 2024-05-06 12:01:50.644 Listing file "/IN/TEST/FNVAT00R20240502160455565.TXT".
. 2024-05-06 12:01:50.690 Creating directory "/IN/TEST/FNVAT00R20240502160455565.TXT".
. 2024-05-06 12:01:50.690 Canonifying: "/IN/TEST/FNVAT00R20240502160455565.TXT"
. 2024-05-06 12:01:50.706 Canonified: "/IN/TEST/FNVAT00R20240502160455565.TXT"
* 2024-05-06 12:01:50.737 (EOSExtException) Error retrieving file list for "FNVAT00R20240502160455565.TXT\*.*".
* 2024-05-06 12:01:50.737 System Error.  Code: 59.
* 2024-05-06 12:01:50.737 An unexpected network error occurred
. 2024-05-06 12:01:50.737 Asking user:
. 2024-05-06 12:01:50.737 Error listing directory 'FNVAT00R20240502160455565.TXT\*.*'. ("Error retrieving file list for ""FNVAT00R20240502160455565.TXT\*.*"".","System Error.  Code: 59.","An unexpected network error occurred")
< 2024-05-06 12:01:50.737 Script: Error listing directory 'FNVAT00R20240502160455565.TXT\*.*'.
< 2024-05-06 12:01:50.737 Script: Error retrieving file list for "FNVAT00R20240502160455565.TXT\*.*".
< 2024-05-06 12:01:50.737 System Error.  Code: 59.
< 2024-05-06 12:01:50.737 An unexpected network error occurred

Someone can explain me this behaviour?