This commit is contained in:
Zihan Chen
2018-07-03 22:09:01 -07:00
parent 35ea117da2
commit f46255a53a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -73,8 +73,8 @@ try {
$FileName = (Resolve-Path -Path $FileName).Path
if (-not (Test-Path -Path "$($FileName).log")) {
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
New-Item -ItemType Directory "$($FileName).log" | Out-Null
}
New-Item -ItemType Directory "$($FileName).log" | Out-Null
EnumerateResourceFiles $FileName
if (-not (Test-Path -Path "$($FileName).log\ResourceFiles.txt")) {
+2 -2
View File
@@ -20,10 +20,10 @@ try {
throw "Input does not exist: $FileName"
}
$FileName = (Resolve-Path -Path $FileName).Path
if (Test-Path -Path "$($FileName).log") {
if (-not (Test-Path -Path "$($FileName).log")) {
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
New-Item -ItemType Directory "$($FileName).log" | Out-Null
}
New-Item -ItemType Directory "$($FileName).log" | Out-Null
EnumerateResourceFiles $FileName
if (-not (Test-Path -Path "$($FileName).log\ResourceFiles.txt")) {