This commit is contained in:
Zihan Chen
2018-07-02 18:21:58 -07:00
parent c54b34aff1
commit 5b42f2bf37
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -56,8 +56,10 @@ try {
throw "Input does not exist: $FileName"
}
$FileName = (Resolve-Path -Path $FileName).Path
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
New-Item -ItemType Directory "$($FileName).log" | Out-Null
if (Test-Path -Path "$($FileName).log") {
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
New-Item -ItemType Directory "$($FileName).log" | Out-Null
}
EnumerateResourceFiles $FileName
if (-not (Test-Path -Path "$($FileName).log\ResourceFiles.txt")) {
+4 -2
View File
@@ -20,8 +20,10 @@ try {
throw "Input does not exist: $FileName"
}
$FileName = (Resolve-Path -Path $FileName).Path
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
New-Item -ItemType Directory "$($FileName).log" | Out-Null
if (Test-Path -Path "$($FileName).log") {
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
New-Item -ItemType Directory "$($FileName).log" | Out-Null
}
EnumerateResourceFiles $FileName
if (-not (Test-Path -Path "$($FileName).log\ResourceFiles.txt")) {