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