Sha256: 8093402726452f85c671905f82d3d1aeac05d48bf0edaf797ec068f9a16f658b
Contents?: true
Size: 493 Bytes
Versions: 97
Compression:
Stored size: 493 Bytes
Contents
Function Delete-AllDirs($dirs) { $dirs | ForEach-Object { if (Test-Path ($path = Unresolve-Path $_)) { Remove-Item $path -Recurse -Force } } } Function Unresolve-Path($p) { if ($p -eq $null) { return $null } else { return $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($p) } } Function Make-RootPath($p) { $p = Unresolve-Path $p if (-Not (Test-Path $p)) { New-Item $p -ItemType directory | Out-Null } } Delete-AllDirs $dirs Make-RootPath $root_path
Version data entries
97 entries across 97 versions & 2 rubygems