Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/taskgraph/run-task/run-task
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ def remove(path):
return

"""
On Windows, adds '\\\\?\\' to paths which match ^[A-Za-z]:\\.* to access
On Windows, adds '\\\\?\\' to paths which match ^[A-Za-z]:(\\|/).* to access
files or directories that exceed MAX_PATH(260) limitation or that ends
with a period.
"""
if (
sys.platform in ("win32", "cygwin")
and len(path) >= 3
and path[1] == ":"
and path[2] == "\\"
and path[2] in (os.pathsep, os.altsep)
):
path = "\\\\?\\%s" % path

Expand Down
Loading