2008/5/7 Lennon Cook <
lennon@...>:
> Samuel Dionne-Riel <
samuel@...> wrote:
>> What happens is that it creates a
>> temporary files, then has some troubles renaming it... thus it gives
>> me this traceback:
> This same behavior also causes other problems - for example, it has the
> side-effect of resetting permissions and extended attributes, every
> time the file is saved.
>
> Is there a reason for this behavior? Why can't it just try to overwrite
> the file in-place, like most other editors? The only obvious reason
> would be for atomicity (so that it doesn't write half the file and then
> fail); for which a better solution - again, adopted by some existing
> programs - would be to save a backup copy of the *old* version until
> it's done all it can to get the new version on disk.
That still leaves you with an inconsistent file during the save (which can
be a problem for config files) and if the save fails.
Any idea why the rename is failing?
Also, it shouldn't be losing the permissions (it preserves them for me, on
a normal filesystem).
--
Dr Thomas Leonard
http://rox.sourceforge.netGPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
rox-users mailing list
rox-users@...
https://lists.sourceforge.net/lists/listinfo/rox-users