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

Add utilities for working with long paths #5

Open
gsemac opened this issue Jan 21, 2022 · 0 comments
Open

Add utilities for working with long paths #5

gsemac opened this issue Jan 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gsemac
Copy link
Owner

gsemac commented Jan 21, 2022

Prior to .NET Framework 4.6.2, there was no support for paths longer than MAX_PATH in the managed IO classes. Apps running on .NET Framework 4.6.2 or later that target earlier versions of .NET Framework are able to bypass MAX_PATH with a bit of work, requiring the user to opt-in via registry key and the application via its manifest.

If .NET Framework 4.6.2 or later is not available, the restriction can be bypassed by P/Invoking the relevant Win32 APIs directly with using the long path prefix (\\?\).

It would be nice to allow for long paths to be used transparently, probably by adding some methods to FileUtilities.

@gsemac gsemac added the enhancement New feature or request label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant