debug unc qualifier
This commit is contained in:
parent
479b365ebb
commit
5bb00b63e5
|
|
@ -26,6 +26,11 @@ function Get-Config {
|
|||
function Get-UNCPath {
|
||||
param([string]$LocalPath)
|
||||
|
||||
# Wenn der Pfad bereits ein UNC-Pfad ist, direkt zurueckgeben
|
||||
if ($LocalPath -match '^\\\\') {
|
||||
return $LocalPath
|
||||
}
|
||||
|
||||
$drive = Split-Path -Path $LocalPath -Qualifier
|
||||
$driveLetter = $drive.TrimEnd(':')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue