The
overwriteLinks
method of the
ImportObject AE Java API class does not work as documented:
overwriteLinks
- If true Folderlinks will not be kept
In fact, it works oppositely to the way described.
Value of overwriteLinks | Behavior |
---|
false
| For objects that are replaced, the home folder locations of these objects are determined by the import location and any locations described in the FOLDER_STRUCT portion of the XML file. (The relative folder structure from the source AE system.) Any links to these objects are removed.
|
true
| For objects that are replaced, the home folder locations of these objects are not changed. If the objects’ home folders are different than the target import folder, then links to the replaced objects will be created in the target folder.
|
In other words, the value of the
overwriteLinks
parameter corresponds directly to the state of the
Keep existing folder links check box in the XML import UI dialog box.
|
|
XML import dialog box (JUI)
| XML import dialog box (AWI)
|
Note that the language in the UI is exactly opposite to the language in the API.
I suggest that Automic take one of the following courses of action:
- Change the name of the parameter (e.g., to
preserveLinks
), or - Swap the behaviors oftrueandfalse.