FileSystemRepositoryHelperDeleteDirectory Method |
Deletes a directory specified by directoryPath.
Namespace: CMS.ContinuousIntegrationAssembly: CMS.ContinuousIntegration (in CMS.ContinuousIntegration.dll) Version: 12.0.0
Syntax public static bool DeleteDirectory(
string directoryPath,
bool recursive = false
)
Parameters
- directoryPath
- Type: SystemString
Absolute path to the directory. - recursive (Optional)
- Type: SystemBoolean
True to remove directories, subdirectories, and files in path, otherwise false.
Return Value
Type:
BooleanFalse if the delete method throws an
IOException with
HResult 0x80070091 (ERROR_DIR_NOT_EMPTY), otherwise true.
Remarks
If the delete method throws an
IOException with
HResult 0x80070091 (ERROR_DIR_NOT_EMPTY), it is ignored.
See Also