|
|
|
|
|
by naasking
999 days ago
|
|
> You would have to lock the file, or guarantee consistency in some other way. I think the standard approach to atomicity is to copy, change the copy, then move that copy overwriting the original (edit: file moves are sorta atomic). Not perfect but generally works. I agree that this approach is not good for a users directory, I'm just disagreeing that the reason it's not good is performance-related. |
|