Summary
	
    Determines whether the given path refers to an existing directory.
    
		
	Syntax
	[CakeMethodAlias]
[CakeAliasCategory("Exists")]
public static bool DirectoryExists(this ICakeContext context, DirectoryPath path)
	Examples
	
    var dir = "publish";
if (!DirectoryExists(dir))
{
    CreateDirectory(dir);
}
     
	Attributes
		
	Parameters
		
	Return Value
	
		
			
				
					
						| Type | Description | 
				
				
					| bool | trueif path refers to an existing directory;falseif the directory does not exist or an error occurs when trying to
    determine if the specified path exists. |