Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENAMETOOLONG: name too longでdumpできない #193

Open
thr3a opened this issue May 4, 2022 · 1 comment
Open

ENAMETOOLONG: name too longでdumpできない #193

thr3a opened this issue May 4, 2022 · 1 comment

Comments

@thr3a
Copy link

thr3a commented May 4, 2022

環境

  • MacOS 12.3.1(intel CPU)
  • VSCode 1.66.2

症状

「Dump All Entries」で既存の記事をエクスポートしようとすると、ファイル名が長すぎてエラーになってしまう
失敗した実際の記事: https://thr3a.hatenablog.com/entry/20220429/1651198971

HatenaBlogger was canceled. Error: ENAMETOOLONG: name too long, open '/Users/thr3a/works/hatenablog/2022-04-29T11:22:51+09:00-13574176438087321905-Raspi%E3%81%A7WireGuard%20VPN%E7%92%B0%E5%A2%83%E4%BD%9C%E3%81%A3%E3%81%9F%E3%81%AE%E3%81%AB%E5%A4%96%E9%83%A8%E3%81%8B%E3%82%89%E4%BB%96%E3%81%AELANIP%E3%81%AB%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84%E4%BB%B6.md'

一定文字数以上はトリムする、または設定で自由にカスタマイズできると嬉しいです

@uraway
Copy link
Owner

uraway commented Jun 30, 2022

ありがとうございます!今ちょっと忙しくて時間が取れないのですが、PR歓迎です!

ダンプするときにエントリのタイトルをファイル名から除外すれば良さそうかな

https://github.com/uraway/hatenablogger/blob/master/src/extension.ts#L70

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

No branches or pull requests

2 participants