示例#1
0
        // File Info

        /// <summary>Returns name of file size in bytes from file path</summary>
        /// <param name="FilePath">File Location to Parse</param>
        /// <param name="CheckIfExists">Option to check to see if FilePath exists - FileDir returns blank if file not found</param>
        /// <param name="ReturnBytes">Returns Bytes by Default, option to override and return bytes converted to KB/MB/TB</param>
        public static string FileSize(this string FilePath, bool CheckIfExists = false, bool ReturnBytes = true)
        {
            _AHK ahk = new _AHK();

            return(ahk.FileSize(FilePath, CheckIfExists, ReturnBytes));
        }