-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Files with very long paths fail to extract on Windows #169
Comments
The ?\ hack doesn't work, but robocopy does - sort of. The issue is that robocopy gives non-zero exit codes for normal use cases. See http://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code Likely needs more hacking to wrap the robocopy command and convert exits code less than 1 (or 4?) into 0. |
sgtcoolguy
added a commit
to sgtcoolguy/ark
that referenced
this issue
Nov 18, 2016
…ndows - Use robocopy instead of xcopy, alter to smooth out exit codes of 0-3 to become 0
4 tasks
tas50
added a commit
that referenced
this issue
Dec 6, 2016
Fix #169 - Files with very long paths fail to extract on Windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cookbook version
2.0.2
Chef-client version
12.16.42
Platform Details
Windows 10
Scenario:
Attempting to use ark to grab a 7z file (https://sourceforge.net/projects/boost/files/boost/1.62.0/boost_1_62_0.7z) and extract it to C:\Program Files(x86)\boost
The boost libraries generate very long paths, beyond Windows old path limits. Using copy to copy files from the temp dir over when stripping components ends up failing because of these long paths.
Looks like using Robocopy in place of copy would work? Or possibly prefixing the path with
\\?\
:http://superuser.com/questions/216704/how-to-copy-files-that-have-too-long-of-a-filepath-in-windows/760601
Steps to Reproduce:
Expected Result:
I expect the file to get downloaded, the directory to get created, the contents extracted inside.
Actual Result:
The text was updated successfully, but these errors were encountered: