File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def extract(location, target_dir):
5454
5555 # make the path safe to use as a subfile path
5656 # ensure this a good and clean posix relative path
57- patch_subfile_path = paths .safe_path (patch_subfile_path )
57+ patch_subfile_path = paths .safe_path (patch_subfile_path , preserve_spaces = True )
5858
5959 # create directories
6060 parent_dir = posixpath .dirname (patch_subfile_path )
Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ def extract_file_by_file(
467467 errors [entry .path ] = 'No file name extracted.'
468468 continue
469469
470- safe_path = paths .safe_path (entry .path , posix = True )
470+ safe_path = paths .safe_path (entry .path , posix = True , preserve_spaces = True )
471471 target_file_loc = os .path .join (target_dir , safe_path )
472472 target_file_dir = os .path .dirname (target_file_loc )
473473 fileutils .create_dir (target_file_dir )
You can’t perform that action at this time.
0 commit comments