"Delete Directory" action fails if the directory is flagged read-only

  • 7009878
  • 09-Dec-2011
  • 03-Aug-2012


Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1 Bundles


Trying to delete a directory using a "Create/Delete Directory" action.

Directory has been flagged read-only by using "attrib +R {directory}" (marking read-only using folder properties inWindows explorer does not do the same thing, that only flags files).

Error (in zmd-messages.log: in this example the directory that should be deleted is "C:\temp\ro-system")
[DEBUG] [12/09/2011 14:55:45.416] [1932] [ZenworksWindowsService] [15] [Shaun] [GenericActions] [] [Directory C:\temp\ro-system is not empty and will not be deleted. Exception = System.IO.IOException: Access to the path 'C:\temp\ro-system' is denied.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
   at Novell.Zenworks.ActionManager.GenericActions.CopyFilesLib.DeleteDirectory(Session session, Action action, CreateDeleteDirectoryData createDelDirData, Boolean recursive)] [] []


This is fixed in version 11.2.1 - see KB 7010042 "ZENworks Configuration Management 11.2.1 - update information and list of fixes" which can be found at https://support.microfocus.com/kb/doc.php?id=7010042