File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 352
352
}
353
353
354
354
# Setup access path location
355
- $accessPath = Join-PSFPath - Path $Destination - Child $mountDirectory
355
+ $accessPath = [ System.IO. Path]::Combine( $Destination , $mountDirectory )
356
356
357
357
# Check if access path is already present
358
358
if ($PSCmdlet.ShouldProcess ($accessPath , " Testing existence access path $accessPath and create it" )) {
382
382
}
383
383
384
384
# Check if the clone vhd does not yet exist
385
- $clonePath = Join-PSFPath - Path $Destination - Child " $ ( $CloneName ) .vhdx"
385
+ $clonePath = [ System.IO. Path]::Combine( $Destination , " $ ( $CloneName ) .vhdx" )
386
386
if ($computer.IsLocalhost ) {
387
387
if (Test-Path - Path " $ ( $clonePath ) " - Credential $DestinationCredential ) {
388
388
Stop-PSFFunction - Message " Clone $CloneName already exists" - Target $accessPath - Continue
You can’t perform that action at this time.
0 commit comments