Skip to content

Fail to preview files with long path #1643

@1821746019

Description

@1821746019

Describe the bug

Quicklook

Image

msedge

Image

Copy file path in context menu(ctrl+shift+c)

Image

To Reproduce
Steps to reproduce the behavior:

  1. run these command in cmd
cd /d D:\
set dir_name="这是一个名字很长的的文件夹,但其还不会超出MAX_PATH(256)_this is a folder with long name, but its path would not exceed MAX_PATH____________________________________________________________"
set file_name="这是一个名字很长的文件,若和上面的folder同级仍可正常预览,但移动到folder内后就不行了_this is a file with long name. When placed in the same level with folder above, it can be previewed normally. But when placed in the folder above, it cannot.html"

mkdir %dir_name%
echo "content of html" > %file_name%
move %file_name% %dir_name%
  1. preview the file

Expected behavior
preview work with long path

Desktop (please complete the following information):
win10 22H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions