Documentation > CMS Template API Library > Asset > IsFolder

IsFolder

Whether this asset is of AssetType.Folder

Type

System.Boolean

Value

Is this a folder.

Code Example

C#

Sample:
	Asset myAsset = Asset.Load("/PathTo/Asset");	
	if(myAsset.IsLoaded)
	{
		if(myAsset.IsFolder)
		{
			Out.WriteLine("This is a folder.");	
		}
	}	

Connect with Crownpeak