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

utility_functions: Add LongPath support to RemoveTree #444

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

Javagedes
Copy link
Contributor

@Javagedes Javagedes commented Nov 1, 2023

On Windows systems with long paths disabled, the RemoveTree function fails to remove files that go over the character limit as they cannot be found. This change, on windows, prefixes the path with the '\\?\' which allows for the detection of long paths, and allows for the removal of the file.

Closes #445

On Windows systems with long paths disabled, the RemoveTree function
fails to remove files that go over the character limit as they cannot
be found. This change, on windows, prefixes the path with the '\\?\'
which allows for the detection of long paths, and allows for the removal
of the file.
Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (fbebfe9) 81.01% compared to head (41924f3) 80.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #444      +/-   ##
==========================================
- Coverage   81.01%   80.99%   -0.03%     
==========================================
  Files          57       57              
  Lines        7284     7286       +2     
==========================================
  Hits         5901     5901              
- Misses       1383     1385       +2     
Files Coverage Δ
edk2toollib/utility_functions.py 65.35% <0.00%> (-0.48%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Javagedes Javagedes requested a review from makubacki November 1, 2023 21:59
@Javagedes Javagedes merged commit 53ad955 into tianocore:master Nov 1, 2023
10 of 12 checks passed
@Javagedes Javagedes added this to the 0.19.4 milestone Nov 1, 2023
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.

[Bug]: Failed to fully remove ... [WinError 3] The system cannot find the path specified: ...
2 participants