Documentation > CMS Template API Library > Asset > Size
Size
The size of the asset. If it is a file, it is the size of the file in bytes. If it is a folder it is the number of children in that folder.
Type
System.Int64
Code Example
C#
Sample:
Asset myAsset = Asset.Load("/PathTo/Asset"); if(myAsset.IsLoaded) { Out.WriteLine("Size: " + myAsset.Size); }