Description
-
Fires after wodFtpDLX performs operation on item and
error occurs.
Syntax
-
Private Sub
object_LoopError(LocalFile,
RemoteFile, ItemType, ErrorCode,
ErrorText)
The LoopError Event syntax has these parts:
| object |
A wodFtpDLX
object. |
| LocalFile |
A String value. Full path to
file/folder on local disk. |
| RemoteFile |
A String value. Full path to
file/folder on remote server. |
| ItemType |
A DirItemTypes
enumeration, as described in settings. Type of the item
- file, folder, symlink. |
| ErrorCode |
A Long value. Code of the error, if
error occurred. |
| ErrorText |
A String value. Text description of the
error, if available. |
Settings
-
The settings for ItemType are:
 |
typeDirectory |
0 |
Item is directory. |
 |
typeSymlink |
1 |
Item is symbolic
link. |
 |
typeFile |
2 |
Item is file. |
 |
typeTemporary |
3 |
Item is temporary
file/folder. |
 |
typeUnknown |
4 |
Unknown item. |
Remarks
-
LoopError event is fired as result of error that
occurred during execution of GetFiles,
DeleteFiles,
PutFiles
and LoopFiles
methods. Since those methods are working with many
files/folders in a sequence, error may occur while, for
example, creating directory, accessing files (like
permission problems) etc.. When an error happens, this
event is fired and error is provided in ErrorCode and
ErrorText arguments. You can now evaluate the error to
determine why your method failed.
You are allowed to set ErrorCode
= 0 inside this event, which would cause method to
continue performing its work on rest of
items, completely ignoring the error. If you don't
set ErrorCode to 0, then method will return immediately
with the error as soon as you leave this event.
|