Skip to content

Fix crash when writing BPM/cue data to TP-7 over MTP#37

Merged
pixelate merged 1 commit into
mainfrom
claude/fix-tp7-mtp-write-crash
Mar 24, 2026
Merged

Fix crash when writing BPM/cue data to TP-7 over MTP#37
pixelate merged 1 commit into
mainfrom
claude/fix-tp7-mtp-write-crash

Conversation

@pixelate
Copy link
Copy Markdown
Owner

@pixelate pixelate commented Mar 24, 2026

Summary

  • Replaces FileUtils.cp with FileUtils.install when writing the BPM/cue-updated temp file back to the target path on the device
  • FileUtils.install removes the existing destination file before copying and creates parent directories, which is required for MTP devices (like the TP-7) that don't support in-place file overwrites
  • FileUtils.cp was failing with Errno::ENOENT because it tried to open the existing MTP file for writing directly, which MTP doesn't allow

Use FileUtils.install instead of FileUtils.cp when writing the
BPM/cue-updated temp file back to the target path. FileUtils.install
removes the destination before copying and creates parent directories,
which is required for MTP devices that don't support in-place overwrites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pixelate pixelate force-pushed the claude/fix-tp7-mtp-write-crash branch from ce5537b to c6e232b Compare March 24, 2026 19:13
@pixelate pixelate merged commit e504cbe into main Mar 24, 2026
3 checks passed
@pixelate pixelate deleted the claude/fix-tp7-mtp-write-crash branch March 24, 2026 19:15
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.

1 participant