This commit is contained in:
Zihan Chen
2018-07-04 02:13:28 -07:00
parent f46255a53a
commit 0bfee38ecb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ try {
throw "Input does not exist: $FileName"
}
$FileName = (Resolve-Path -Path $FileName).Path
if (-not (Test-Path -Path "$($FileName).log")) {
if (Test-Path -Path "$($FileName).log") {
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
}
New-Item -ItemType Directory "$($FileName).log" | Out-Null
+1 -1
View File
@@ -20,7 +20,7 @@ try {
throw "Input does not exist: $FileName"
}
$FileName = (Resolve-Path -Path $FileName).Path
if (-not (Test-Path -Path "$($FileName).log")) {
if (Test-Path -Path "$($FileName).log") {
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
}
New-Item -ItemType Directory "$($FileName).log" | Out-Null