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