[PR #86] [CLOSED] fix(downloader): truncate dirname to fit byte limit #102

Closed
opened 2026-10-13 19:47:19 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Glitchy-Sheep/boosty-downloader/pull/86
Author: @yzevm
Created: 1/3/2026
Status: ❌ Closed

Base: main ← Head: fix/truncate-dirname-to-fit-byte-limit


📝 Commits (1)

  • faff48c fix(downloader): truncate dirname to fit os byte limit

📊 Changes

5 files changed (+164 additions, -5 deletions)

View changed files

📝 boosty_downloader/src/application/use_cases/download_all_posts.py (+1 -0)
📝 boosty_downloader/src/application/use_cases/download_specific_post.py (+5 -1)
📝 boosty_downloader/src/infrastructure/file_downloader.py (+1 -1)
📝 boosty_downloader/src/infrastructure/path_sanitizer.py (+11 -3)
➕ test/unit/path_sanitizer/path_sanitizer_test.py (+146 -0)

📄 Description

📌 Task

📝 Description

Please run the following command

mkdir '/tmp/boosty/test/2022-22-22 - This is an example of simple text message for demonstration.                                
 🔥 It contains letters, numbers 123, and punctuation marks and emojis.❤️                                   
It carries no semantic meaning (100%)'

to see this error:

mkdir: cannot create directory ‘/tmp/boosty/test/2022-22-22 - This is an example of simple text message for demonstration.
🔥 It contains letters, numbers 123, and punctuation marks and emojis. ❤️  
It carries no semantic meaning (100%)’: File name too long

✅ Checklist

  • Locally tested (make test and your own judgment)
  • Documentation updated (if necessary)
  • Code follows the project's style guidelines (make lint && make format)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Glitchy-Sheep/boosty-downloader/pull/86 **Author:** [@yzevm](https://github.com/yzevm) **Created:** 1/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/truncate-dirname-to-fit-byte-limit` --- ### 📝 Commits (1) - [`faff48c`](https://github.com/Glitchy-Sheep/boosty-downloader/commit/faff48c48abffcb4463a5f78ff275f4d3024943c) fix(downloader): truncate dirname to fit os byte limit ### 📊 Changes **5 files changed** (+164 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `boosty_downloader/src/application/use_cases/download_all_posts.py` (+1 -0) 📝 `boosty_downloader/src/application/use_cases/download_specific_post.py` (+5 -1) 📝 `boosty_downloader/src/infrastructure/file_downloader.py` (+1 -1) 📝 `boosty_downloader/src/infrastructure/path_sanitizer.py` (+11 -3) ➕ `test/unit/path_sanitizer/path_sanitizer_test.py` (+146 -0) </details> ### 📄 Description # 📌 Task <!-- Rename this to some general header, for example: "Fix bug X" --> ## 📝 Description Please run the following command ``` mkdir '/tmp/boosty/test/2022-22-22 - This is an example of simple text message for demonstration. 🔥 It contains letters, numbers 123, and punctuation marks and emojis.❤️ It carries no semantic meaning (100%)' ``` to see this error: ``` mkdir: cannot create directory ‘/tmp/boosty/test/2022-22-22 - This is an example of simple text message for demonstration. 🔥 It contains letters, numbers 123, and punctuation marks and emojis. ❤️ It carries no semantic meaning (100%)’: File name too long ``` ## ✅ Checklist - [x] Locally tested (`make test` and your own judgment) - [ ] Documentation updated (if necessary) - [x] Code follows the project's style guidelines (`make lint && make format`) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-13 19:47:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Glitchy-Sheep/boosty-downloader#102
No description provided.