Copying folders with the function copyFolder from MDM Zinc doesn't show the same behavior on Mac as it does on PC.

On PC the content of the folder is also copied, on Mac this isn't the case. On mac only the folder itself is copied, but not the contents. It's rather annoying as you would expect the same behavior be programmed by MDM.

If you want the same behavior on Mac then you better use some AppleScript.

Actionscript:
  1. var shellScript:String = "tell application \"Finder\" \r" +
  2.     "duplicate \"" + copyFrom + "\" to \"" + copyTo + "\" \r" +
  3.     "end tell";
  4. trace("EVAFRAMEWORK :: ZincSystemService.as : Executing shellScript : " + shellScript);
  5.          
  6. mdm.AppleScript.setScript(shellScript);
  7. if(mdm.AppleScript.compileScript())
  8. {
  9.     trace("EVAFRAMEWORK :: ZincSystemService.as : Script Compiled Successfully");
  10.     if(mdm.AppleScript.run())
  11.     {
  12.         trace("EVAFRAMEWORK :: ZincSystemService.as : Script Runned Successfully");
  13.     }
  14.     else
  15.     {
  16.         trace("EVAFRAMEWORK :: ZincSystemService.as : Run Error : " + mdm.AppleScript.getLastError());
  17.     }
  18. }
  19. else
  20. {
  21.     trace("EVAFRAMEWORK :: ZincSystemService.as : Compile Error : " + mdm.AppleScript.getLastError());
  22. }

To move a folder, there's no function available in Zinc, so you need to copy and delete. The function deleteFolder from Zinc does have the same behavior on Mac and PC.