martin wrote:
ted1001 wrote:
I just downloaded the latest version.
tmp-files are not deleted after running dispose.
Old ones or new ones? The olds one are not. You need to delete them manually. But the new ones should be deleted.
The new ones are not deleted. Triggering it from Powershell like this:
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp
$sessionOptions.HostName = "---------REMOVED--------"
$sessionOptions.UserName = "---------REMOVED--------"
$sessionOptions.Password = "---------REMOVED--------"
$sessionOptions.SshHostKey = "ssh-rsa 1024 ---------REMOVED--------"
$session = New-Object WinSCP.Session
$session.ExecutablePath = $winscpPath
$session.DisableVersionCheck = "true"
Example of the content of a tmp-file not deleted:
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="https://winscp.net/schema/session/1.0" name="---------REMOVED--------" start="2012-05-24T08:22:55.320Z">
<group name="open -hostkey="ssh-rsa 1024 ---------REMOVED--------" -timeout=15 "sftp://---------REMOVED--------5"" start="2012-05-24T08:22:55.711Z">
</group>
<group name="stat -- "./files/lmsdeploy/---------REMOVED--------/uploadcompleted.true"" start="2012-05-24T08:22:55.758Z">
<stat>
<filename value="/files/lmsdeploy/Atlantic/uploadcompleted.true" />
<result success="false">
<message>Can't get attributes of file './files/lmsdeploy/Atlantic/uploadcompleted.true'.</message>
<message>No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 7</message>
</result>
</stat>
<failure>
<message>Can't get attributes of file './files/lmsdeploy/---------REMOVED--------/uploadcompleted.true'.</message>
<message>No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 7</message>
</failure>
</group>
<group name="exit" start="2012-05-24T08:22:55.883Z">
</group>
</session>