Implment CreateDirectoryTask.