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

[Bug]: File operations fail for long paths on Windows #1356

Open
1 task done
danra opened this issue Feb 27, 2024 · 0 comments
Open
1 task done

[Bug]: File operations fail for long paths on Windows #1356

danra opened this issue Feb 27, 2024 · 0 comments

Comments

@danra
Copy link
Contributor

danra commented Feb 27, 2024

Detailed steps on how to reproduce the bug

I used RangedDirectoryIterator() to iterate over a directory with a file whose full path name is longer than MAX_PATH. That worked properly, but the returned File object isn't functional, e.g., existsAsFile() returns false, and reading fails.

A workaround is to create a new File object, prefixing the path name with \\?\.

This was apparently also encountered by multiple users in the forum.

What is the expected behaviour?

Deal with long filenames

Note: On new enough versions of Windows this can apparently be handled without prefixing \\?\ everywhere, by adding a manifest. That's a good enough solution IMHO. At least it would solve 80% of the limitation possibly with 20% of the work.

Operating systems

Windows

What versions of the operating systems?

all

Architectures

64-bit

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant