Implement unique filename generation to prevent overwriting existing session files #4
Reference in New Issue
Block a user
Delete Branch "no-overrides"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@luna review
Nice fix. The new
getUniqueFilePathhelper does what we want and prevents filename collisions by appending-1,-2, etc., and wiring it into the write path looks clean. Non-blocking note: this is still check-then-write, so there is a tiny race window under concurrent writes. If we ever want to harden it fully, we can switch to atomic creation (openwithwx) or temp-file + rename. LGTM from my side.