Skip to content

fix: create temp directory next to input file#4

Open
fredchu wants to merge 1 commit intodeusyu:mainfrom
fredchu:fix/temp-dir-location
Open

fix: create temp directory next to input file#4
fredchu wants to merge 1 commit intodeusyu:mainfrom
fredchu:fix/temp-dir-location

Conversation

@fredchu
Copy link
Copy Markdown

@fredchu fredchu commented Mar 22, 2026

Summary

  • Remove os.path.basename() from setup_temp_directory() and main() in convert.py
  • Temp directory now inherits the input file's full path, creating {filepath}_temp/ next to the source file
  • More intuitive when the input EPUB is in ~/Downloads/ or another non-cwd location

从 PR #2 拆出来的第一项改动(temp 目录位置),按 review 建议单独提交。

Test plan

  • Verified convert.py compiles without errors
  • Confirmed temp dir is created next to input file, not in cwd

🤖 Generated with Claude Code

Remove os.path.basename() so the temp dir preserves the input
file's directory path. More intuitive when the input EPUB lives
in ~/Downloads/ or another non-cwd location.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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