|
Summary
Target of next file or directory action.
Description
The Target property is used to specify the file or subdirectory on which to perform the next file or directory action. This property always specifies a file or subdirectory located in the
current working directory on the FTP server.
For file operations, the Target property must be set before assigning FILE_ACTION_DELETE or FILE_ACTION_RENAME to the FileAction property. The NewName property must also be set before renaming a
remote file.
For directory operations, the Target property must be set before assigning DIR_ACTION_CHANGE, DIR_ACTION_CREATE, DIR_ACTION_DELETE or DIR_ACTION_RENAME to the DirAction property. The NewName property
must also be set before renaming a remote subdirectory.
This property can be changed at any time. There is no default value for this property.
Example
FTPClient.Target = "company1" FTPClient.DirAction = DIR_ACTION_CHANGE
Note
This property only needs to be used if you are using the FileAction or DirAction properties. Otherwise use the Target parameter in the RenameFile or RenameDir methods.
|