Skip to content

fix(fs): drop truncating probe-open in desktop cp (B5)#33

Merged
dsent merged 1 commit into
aldum:devfrom
Vadim1987:Vadim1987/fix-cp-probe-open
Jun 30, 2026
Merged

fix(fs): drop truncating probe-open in desktop cp (B5)#33
dsent merged 1 commit into
aldum:devfrom
Vadim1987:Vadim1987/fix-cp-probe-open

Conversation

@Vadim1987

Copy link
Copy Markdown

Desktop FS.cp opened the target with io.open(target, "w") only as a writability probe: it never wrote through that handle, never closed it (leak), and "w" truncated the target before the source was even read. Removed the probe — FS.write already opens and reports errors. Also pass the path, not the boolean, to cannot_open.

@dsent
dsent requested a review from aldum June 30, 2026 02:42
@dsent
dsent merged commit b03845a into aldum:dev Jun 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants