Doesn't appear to support "long paths"
920hime opened this issue · comments
I'm looking for a rescue tool for the "long path" error.
README.md
Changes in master v10.0 after original_plus
21. Winfile can handle pathes up to 1024 characters with Windows10 >= 1607.
Set HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled=1 as admin
- I tried renaming the file with Winfile to create a longer path,
but it truncates it to 259 characters. - If the path becomes long (more than 259) with copy & paste, an error will occur.
Are there any setting items other than the above registry settings?
Environment: Windows 10 Pro 22H2, WinFile 10.1.4.0
- Did you apply the registry setting as admin?
- Did you compile winfile yourself from the most recent source on this repository?
The binaries provided here do not yet contain this functionality, but a release, see #356, is on the way.
In the meantime you can take my binaries.
Unfortunately the result was the same.
Unfortunately the result was the same.
Have you tried my binaries ?
Added the registry key as admin?
If it is not working, please report in detail what are trying to do:
- press Windows G, and select 'record video'
- reproduce the issue
- during reproduction please select Help/About so that we have the About Box in the video for a short moment
- post the screen capture video here
Are you comparing the length of the new name with MAX_PATH(260) in the rename (F2) operation?
No.
Please provide a description what you are trying to do by following the instructions in my last comment.
- I'm trying to create a file with a long name with a rename to check for long path support.
However, a file exceeding 255char cannot be created in the following format.
Copy (F8) is similar.
D:\X<FileName(255char)> (Total: 260char) - It is possible to copy(Ctrl+C & Ctrl+V) this file to a deep directory.
I looked at #356 and looked it up.
"Visual C++ Redistributable" in my environment is
2010(2021-10), 2013(2022-1), 2015(2021-9, install).
Doesn't this matter to you?
General
NTFS suports path + filename up to 32767 utf-16 characters, but each individual component (subfolder/final-file) has a limit of 255 utf-16 characters
Your Case
Winfile supports path + filename up to 1024 utf-16 characters. You are trying to create a single file with more than 256 characters, which violates the general NTFS limitation above. Winfile and no other tool can overcome this.
A small test to prove that Winfile works with long path up to 1024 utf-16 characters according the NTFS spec can be found here
I got it
@craigwims: please close