Skip files in GetFiles Method - WeOnlyDo Discussion board

Skip files in GetFiles Method (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Clark Manlosa, Tuesday, May 20, 2008, 09:16 (5830 days ago)

We are testing an evaluation version of WodFtpDLX on Powerbuilder 7.
In this testing we want to achieve downloading .sql files. Base on the documentation GetFiles method will fire LoopItem event wherein we can add a script to skip or include files. However, the powerscript below failed to do this.

---using Skip
if itemtype = 0 then
Skip = True
else
if Right(RemoteFile, 4) = .sql then
Skip = False
else
Skip = True
end if
end if

with the script above i am not getting any errors but it does not skip any file. so i tried to use ItemSkip property as i found in the documentation that some programming environment like Delphi does not return values back to WodFtpDLX.

if itemtype = 0 then
ole_wodftp.object.ItemSkip = True
else
if Right(RemoteFile, 4) = .sql then
ole_wodftp.object.ItemSkip = False
else
ole_wodftp.object.ItemSkip = True
end if
end if

please give me any idea on the script above as i am getting errors like invalid property to object when using ItemSkip.

your help is very much appreciated.

thanks

Clark Manlosa


Complete thread: