On Saturday 11 April 2015 20:04:22 Tim Jenkin wrote:
> Dear Kate developers,

Hello Tim!

> Kate is my favourite text editor but I have an issue with it that often
> leave me with the feeling that it is my least favourite text editor!
> 
> This is when I am editing files directly on the server. I know this is
> not a good practice, but often a file needs to be tweaked quickly so
> there is no better way than to do it directly with Kate.
> 
> My issue is that Kate randomly creates .part files when saving on the
> server. When such a file is created then the file can't be saved back on
> the server until the .part file is deleted.

This is afaik not random at all, but part of a very common technique to ensure 
web uploads do not corrupt the original file. Imagine you safe and lose the 
network connection in the middle of that process. If the original would be 
written to directly, it would now be corrupted -> bad! Also, this process 
would not be atomic. So instead a temporary .part file is created and written 
to and eventually moved (atomically, afaik) to the original location.

> Needless to say this is VERY irritating. I can't see any reason for
> these .part files. When they are deleted the sky does not fall in and
> everything continues fine. There seems to be no pattern to these .part
> files being created. Sometimes they are created and sometimes they are
> not, but when they prevent me from saving it is very annoying.
>
> What can be done about this? Is there any way of switching off the .part
> files or preventing their creation? What can I do to avoid them?

I would say even if it would be configurable (I doubt it), then you should 
really not switch it off. Rather, I wonder why .part files are left lying 
around. And that they cannot be overwritten is probably due to the dumb 
windows "feature" of "file still open" or the like. Anyhow, David Faure might 
know more about this or what might be going on.
 
> I have recently taken to working directly on the server with remote
> desktop to prevent these annoying .part files, but the server being
> Windows obviously does not have Kate on it.

In general, this is not Kate/Kwrite specific, but rather something that is KIO 
specific and thus applies to all KDE applications. Please direct future 
questions to kde-devel@kde.org

Thanks.
-- 
Milian Wolff
m...@milianw.de
http://milianw.de

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to