Skip to content

Conversation

Guerra24
Copy link
Contributor

Through the magic of overload this PR adds (mostly) transparent support for long paths on Windows.

It works by overloading the test file operators with their long path compatible variants but it requires wrapping paths into objects for them to work. There are ways to do this more transparently but they are experimental and will break 3rd-party libs.

Utils/Path.pm has been added to wrap some of the IO stuff, this is used in cases where long path support is required, which usually is during archive IO operations.

On Windows it wraps paths into a custom object so that overload works and on Linux it becomes a noop stub.

Short paths are still used in some cases where a 3rd-party lib has no support, such as Mojo (currently used for archive downloads).

Win32::FileSystemHelper diff

(Redis is updated to match Alpine and included are the Karen changes as well)

@Guerra24 Guerra24 marked this pull request as ready for review September 23, 2025 07:06
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

Successfully merging this pull request may close these issues.

1 participant