File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def extract(location, target_dir):
54
54
55
55
# make the path safe to use as a subfile path
56
56
# 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 )
58
58
59
59
# create directories
60
60
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(
467
467
errors [entry .path ] = 'No file name extracted.'
468
468
continue
469
469
470
- safe_path = paths .safe_path (entry .path , posix = True )
470
+ safe_path = paths .safe_path (entry .path , posix = True , preserve_spaces = True )
471
471
target_file_loc = os .path .join (target_dir , safe_path )
472
472
target_file_dir = os .path .dirname (target_file_loc )
473
473
fileutils .create_dir (target_file_dir )
You can’t perform that action at this time.
0 commit comments