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

默认限制创建文档层级最大深度为 7 层 #3919

Closed
88250 opened this issue Jan 24, 2022 · 10 comments
Closed

默认限制创建文档层级最大深度为 7 层 #3919

88250 opened this issue Jan 24, 2022 · 10 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Jan 24, 2022

路径名过长的话使用操作系统文件管理器会遇到问题,比如无法复制文件。

@88250 88250 added this to the 1.8.0 milestone Jan 24, 2022
@88250 88250 self-assigned this Jan 24, 2022
@88250 88250 changed the title 限制创建文件层级最大深度 限制创建文档层级最大深度 Jan 24, 2022
@Zuoqiu-Yingyi
Copy link
Contributor

计划限制到多少个字符长度呀❓

@88250
Copy link
Member Author

88250 commented Jan 24, 2022

还没确认,这个需要找找资料,你哪里有参考的吗?

@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented Jan 24, 2022

@88250 建议不作限制, 因为有的系统版本真的好短😭
或者只限制 32 位系统?

命名文件、路径和命名空间 - Win32 apps | Microsoft Docs 最大路径长度限制
最大路径长度限制 - Win32 apps | Microsoft Docs

@88250
Copy link
Member Author

88250 commented Jan 24, 2022

Windows 上好像是最短的。

ID 是 22 个字符,支持 7 层的话大概就是 198(22 * 9 ),剩余字符是分区到 data 文件夹的路径和 \

@88250 88250 changed the title 限制创建文档层级最大深度 限制创建文档层级最大深度为 7 层 Jan 24, 2022
@Zuoqiu-Yingyi
Copy link
Contributor

@88250 升级时对于现有的大于7层的目录怎么处理?
能不能手动解除该限制呢:broken_heart:
不要一刀切呜呜呜😭

@88250
Copy link
Member Author

88250 commented Jan 24, 2022

对于现有数据没有影响,只是不能在 7 层以上的位置创建子文档了。

@Zuoqiu-Yingyi
Copy link
Contributor

对于现有数据没有影响,只是不能在 7 层以上的位置创建子文档了。

那能不能设置一个默认关闭的开关呢?
或者可以使用技术手段绕开该限制💔
目前 windows 的路径长度仅受限于 NTFS 的 32k💔

@88250
Copy link
Member Author

88250 commented Jan 24, 2022

设置 - 文档树里会加个 允许创建深度大于 7 层的子文档 的选项,默认关闭。

@88250 88250 modified the milestones: 1.8.0, 1.7.8 Jan 24, 2022
@88250 88250 changed the title 限制创建文档层级最大深度为 7 层 默认限制创建文档层级最大深度为 7 层 Jan 24, 2022
@Rao-Jupiter
Copy link

Windows 11 里面好像没有这个问题

@88250
Copy link
Member Author

88250 commented Apr 23, 2022

@Rao-Jupiter 外部应用软件可能会碰到问题,比如直接复制文件夹的时候。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants