Cannot remove temporary directory

Cannot remove temporary directory

I use WinSCP for a long time now and have installed versions from 5.9.6 up to 5.13.3 without problems, but since a couple of weeks I get a very peculiar error whose cause I was not able to determine yet. It occurs when I edit a remote file with a local editor and close it.

If I interpret the error message correctly, it complains to not being able to remove a directory without a name. What's going on here?

Most probably the cause is some kind of setting, because the error now appears with any version I tested. If the reason were to be found in the program, it should have appeared after an update, but it didn't.

Indeed I changed the settings for storage recently. Some time ago I changed the storage directory but this did not cause any problem. As far as I remember the problems began when I began experimenting with the "append" checkboxes.

Now checking on or off any of these doesn't change the behavior. Clearing the whole directory doesn't change anything either.

Re: Cannot remove temorary directory

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

I'm very sorry, but the problem persists. Trying to integrate the new version into my workflow, it turned out that the problem most probably is related to my way of starting WinSCP.

I use to open a dozen tabs and hate to select my workspace or whatever I called this collection from the startup dialog (b2d). Long time ago I figured out how to do that automatically, but somehow this got lost a couple of weeks ago.

So I turned to the help online and managed to work out a solution. I created a batch file winscp.bat

winscp.exe b2d

and from this batch file a shortcut which I could stick to my taskbar. Now whenever I do this with whatever version, I get this error.

On the contrary, if I start WinSCP conventionally and take my workspace from the dialogue, I don't get this error with either version.

I attached WinSCP_5.13.3.exe to my taskbar not starting my workspace automatically, so it did not produce an error whenever I closed a file in the editor. It was such a relief which showed me which amount of stress the error had put on me before.

WinSCP20180622.exe seemed to have the same problem, i.e. produce this error when automatically opening the workspace.

WinSCP20180627.exe does not show this error anymore.

Is there a switch to turn off tracing in this debug version?

PS: Now the last problem I have is adding a shortcut to the taskbar which automatically opens my preferred workspace.

I tried different scenarios (... omitted ...) -- I found the solution (simple and logical indeed):

I actually didn't change anything between WinSCP20180622.exe and WinSCP20180627.exe to fix the problem.
So it looks suspicious.
Anyway, I'm sending you a release build of the latest version for testing.