2 ms·
The dance can get even more complicated[0] if you also want to ensure that the rename itself is persisted. But you only really have to encode this in an atomic-
by the8472 6y ago
The dance can get even more complicated[0] if you also want to ensure that the rename itself is persisted. But you only really have to encode this in an atomic-file-write-with-callback library once.
[0] https://danluu.com/file-consistency/ https://danluu.com/file-consistency/