Bug 302059

Summary: Kate can't delete local copy when saving remote files
Product: kde-windows Reporter: Daniel Nebdal <dnebdal>
Component: network and filesAssignee: KDE-Windows <kde-windows>
Status: RESOLVED WORKSFORME    
Severity: minor CC: andriusmao, ps_ml
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description Daniel Nebdal 2012-06-17 13:41:28 UTC
When editing a file over sftp with kate, it saves fine, but then complains that it "Could not delete file c:/users/daniel/appdata/roaming/.kde/tmp-djn8-i5rc/katetR5420.tmp." (or similar).

Reproducible: Always

Steps to Reproduce:
1. Browse some remote protocol with dolphin
2.Open with -> kate
3. In kate, press save.
Actual Results:  
Saves fine, but pops up an error dialog - and indeed, the temp file isn't deleted.

Expected Results:  
No error dialog, temp file deleted.

KDE 4.8.0, Kate 3.8.0 , on Windows 8 release preview. Not tested on other remote protocols. Running as admin doesn't change anything.
Comment 1 Patrick Spendrin 2012-06-18 07:50:17 UTC
Yeah, this is likely because a file handle is still opened. I'll try to find out where this comes from. But I currently have problems using sftp at all.
Comment 2 Jekyll Wu 2013-07-12 14:43:44 UTC
Can't reproduce using  KDE SC 4.10.2 in windows 7. Please try recent release to see whether the problem still exists.
Comment 3 Andrius 2013-07-12 21:27:13 UTC
I had this same problem in earlier version, also worksforme with current version, files are saved normally in remote SFTP server.