From: Chris W. <ch...@cw...> - 2002-08-17 20:14:56
|
On Sat, 2002-08-17 at 14:50, Randal L. Schwartz wrote: > Just remember that when you save a file, you must save it to a unique > temp name in the same directory, then rename it when complete. > Otherwise, an async concurrent process may see a partially written > file. Point well taken. This is already done in the HTML filesystem page editing module and I think I'm going to be able to reuse that code. > This is in addition to any locking you want, or you can simply use a > "last writer wins" strategy. That's the favorite strategy of the lazy :-) Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |