MagicCMS Documentation

MagicUtils..::..FileSizeToStr Method

Files size pretty formatted to string.

Namespace:  MagicCMS.Core
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public static string FileSizeToStr(
	FileInfo fi
)

Parameters

fi
Type: FileInfo
File FileInfo.

Return Value

System.String. The size