akosbalasko / akosbalasko/yarle

Enable Longer File Names and Provide Warnings for Shortening / Truncation

未关闭
#652 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.8k
派生
111
PR 合并指标
30 天内没有已合并 PR

描述

**I noticed that some long file names are shortened after being imported**, but often there is important information in file names that users do not want removed. I understand that there are file name length limitations on many systems, but if it seems the current limit for file attachments it a mere 50 characters set as a constant in [filename-utils.ts / getResourceFileProperties()](https://github.com/akosbalasko/yarle/blob/cf467e422458a04e3e7725b935c82d5f2cc8a970/src/utils/filename-utils.ts#L68)
```js
const fileNamePrefix = resource['resource-attributes']['file-name'].substr(0, 50);
```
It would be much more useful if the value could be user defined, with 0 for no truncation. It would also be useful to have in the log the original file name and the truncated one (so the user can decide to manually rename a few files if they want to).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。