Skip to content
This repository has been archived by the owner on Mar 4, 2025. It is now read-only.

Doesn't appear to support "long paths" #357

Closed
920hime opened this issue Nov 11, 2022 · 11 comments
Closed

Doesn't appear to support "long paths" #357

920hime opened this issue Nov 11, 2022 · 11 comments

Comments

@920hime
Copy link

920hime commented Nov 11, 2022

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

  1. I tried renaming the file with Winfile to create a longer path,
    but it truncates it to 259 characters.
  2. 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

@schinagl
Copy link
Contributor

schinagl commented Nov 11, 2022

  • 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.

@920hime
Copy link
Author

920hime commented Nov 11, 2022

No, I didn't download the source.
#356 I'll try it now.

@920hime
Copy link
Author

920hime commented Nov 11, 2022

Unfortunately the result was the same.

@schinagl
Copy link
Contributor

schinagl commented Nov 11, 2022

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

@920hime
Copy link
Author

920hime commented Nov 14, 2022

Are you comparing the length of the new name with MAX_PATH(260) in the rename (F2) operation?

@schinagl
Copy link
Contributor

No.

Please provide a description what you are trying to do by following the instructions in my last comment.

@920hime
Copy link
Author

920hime commented Nov 15, 2022

  1. 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)
  2. It is possible to copy(Ctrl+C & Ctrl+V) this file to a deep directory.

@920hime
Copy link
Author

920hime commented Nov 15, 2022

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?

@schinagl
Copy link
Contributor

schinagl commented Nov 15, 2022

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

@920hime
Copy link
Author

920hime commented Nov 15, 2022

I got it

@schinagl
Copy link
Contributor

@craigwims: please close

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

No branches or pull requests

3 participants