File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 11
11
[CmdletBinding ()]
12
12
param (
13
13
[string ]
14
- $Path ,
15
-
16
- [switch ]
17
- $EnableBug
14
+ $Path
18
15
)
19
16
20
17
# Prepare working directories
@@ -68,14 +65,9 @@ while ($listToProcess)
68
65
Write-PSFMessage - Level Verbose - Message " Copying from $ ( $item.Name ) : $ ( $_.FullName ) to $ ( $item.Parent ) \$ ( $item.Path ) "
69
66
70
67
# TODO: Debug, delete it
71
- $global :transfers [$_.FullName ] = " $ ( $staging.FullName ) \ $ ( $ item.Parent ) \ $ ( $ item.Path ) "
68
+ $global :transfers [$_.FullName ] = Join-Path ( Join-Path $staging.FullName $ item.Parent ) $ item.Path
72
69
73
- if ($EnableBug ) { Copy-Item $_.FullName - Destination " $ ( $staging.FullName ) \$ ( $item.Parent ) \$ ( $item.Path ) " - Force - Recurse }
74
- else
75
- {
76
- $destinationPath = " {0}\{1}\{2}" -f $staging.FullName , $item.Parent , $item.Path
77
- Copy-Item $_.FullName - Destination $destinationPath - Force - Recurse
78
- }
70
+ Copy-Item $_.FullName - Destination $global :transfers [$_.FullName ] - Force - Recurse
79
71
}
80
72
}
81
73
$listToProcess = $listToProcess | Where-Object { $_ -notin $processingThisTime }
You can’t perform that action at this time.
0 commit comments