]> git.ardis.lu - ArdisUtilities/commitdiff
Use -LiteralPath to resolve paths
authorArdis Lu <ardisglu@gmail.com>
Sat, 25 Dec 2021 04:52:07 +0000 (20:52 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 25 Dec 2021 04:52:07 +0000 (20:52 -0800)
Allows special characters in the path, like brackets.

ArdisUtilities/ArdisUtilities.psm1

index 117ca2b31fd15066b5b5609ff98b327569851bc4..ca549f23e6b35272974e06662e676473f6c6e9f1 100644 (file)
@@ -272,7 +272,7 @@ function Get-SizeDurationRatio {
   )
 
   process {
-    $resolvedPath = Resolve-Path $Path
+    $resolvedPath = Resolve-Path -LiteralPath $Path
     $folderPath = Split-Path $resolvedPath
     $fileName = Split-Path $resolvedPath -Leaf
 
This page took 0.041351 seconds and 4 git commands to generate.