Update to zst file extension
This commit is contained in:
parent
8244b9241a
commit
7eafadc2fe
@ -35,8 +35,8 @@ try
|
||||
|
||||
do
|
||||
{
|
||||
# Get a list of files matching the pattern "_urls.txt.gz"
|
||||
$remoteFiles = $session.EnumerateRemoteFiles($remotePath, "*_urls.txt.gz", [WinSCP.EnumerationOptions]::AllDirectories)
|
||||
# Get a list of files matching the pattern "_urls.txt.zst"
|
||||
$remoteFiles = $session.EnumerateRemoteFiles($remotePath, "*_urls.txt.zst", [WinSCP.EnumerationOptions]::AllDirectories)
|
||||
|
||||
# Check if there are any files to download
|
||||
if ($remoteFiles.Count -eq 0)
|
||||
@ -82,7 +82,7 @@ try
|
||||
}
|
||||
|
||||
# Get a new list of files after downloading
|
||||
$remoteFiles = $session.EnumerateRemoteFiles($remotePath, "*_urls.txt.gz", [WinSCP.EnumerationOptions]::AllDirectories)
|
||||
$remoteFiles = $session.EnumerateRemoteFiles($remotePath, "*_urls.txt.zst", [WinSCP.EnumerationOptions]::AllDirectories)
|
||||
} while ($remoteFiles.Count -gt 0)
|
||||
}
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user