Add logging of raw PSFTP output for missing file

detections. Changed error parsing to be based on
'ftpadmin' rather than 'ssh_init'
This commit is contained in:
Infineon\Mitchem
2025-01-24 14:53:13 -07:00
committed by Mitchem Dakota (CSC FI SPS MESLEO External)
parent f8c83dd7f4
commit d32b4b6e82
2 changed files with 18 additions and 12 deletions

View File

@ -838,7 +838,8 @@ Service ListDirectory(Host=HOSTS, Username, Password, RemoteDirectory, Query, Sc
Command = 'ftp -i -n -s:' : ScriptPath
end
DirectoryList = SRP_Run_Command(Command, 'VAR')
If Count(DirectoryList, 'ssh_init') EQ 0 then
If Count(DirectoryList, 'ftpadmin') NE 0 then
Gosub LsToMls
end else
Error_Services('Add', DirectoryList)
@ -903,3 +904,4 @@ return