Merge pull request #1649 from ilpianista/win_unzip-overwrite-files

win_unzip: overwrite any existing file
reviewable/pr18780/r1
René Moser 9 years ago
commit 791cf2b7bb

@ -61,7 +61,8 @@ If ($ext -eq ".zip" -And $recurse -eq $false) {
$shell = New-Object -ComObject Shell.Application
$zipPkg = $shell.NameSpace($src)
$destPath = $shell.NameSpace($dest)
$destPath.CopyHere($zipPkg.Items())
# 20 means do not display any dialog (4) and overwrite any file (16)
$destPath.CopyHere($zipPkg.Items(), 20)
$result.changed = $true
}
Catch {

Loading…
Cancel
Save