|
|
@ -153,8 +153,8 @@ if ($Single) { |
|
|
|
$List = @(Get-Item -Path $(Edit-PathChar $Path)) |
|
|
|
$List = @(Get-Item -Path $(Edit-PathChar $Path)) |
|
|
|
$BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj | ? {$_.File.Extension -in @(".ass", ".ssa")} |
|
|
|
$BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj | ? {$_.File.Extension -in @(".ass", ".ssa")} |
|
|
|
} elseif ($testrun) { |
|
|
|
} elseif ($testrun) { |
|
|
|
$List = (Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "FileInfo" }) + |
|
|
|
$List = @(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "FileInfo" }) + |
|
|
|
(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "DirectoryInfo" } | % { $_.GetFiles() }) |
|
|
|
@(Edit-PathChar $Path | Get-Item | ? { $_.GetType().Name -eq "DirectoryInfo" } | % { $_.GetFiles() }) |
|
|
|
$BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj |
|
|
|
$BuildList = $List | select $FileObj, $StructPathObj, $NewNameObj |
|
|
|
if ($Include -ne "") { $BuildList = $BuildList | ? {$_.File.Extension -in $Include} } |
|
|
|
if ($Include -ne "") { $BuildList = $BuildList | ? {$_.File.Extension -in $Include} } |
|
|
|
if (-not($Force)) { $BuildList = $BuildList | ? {$_.NewName.Episode -notin $WorkData.Episode} } |
|
|
|
if (-not($Force)) { $BuildList = $BuildList | ? {$_.NewName.Episode -notin $WorkData.Episode} } |
|
|
|