Ejemplo n.º 1
0
 /// <summary>
 /// Returns an formatted string of the given file's size.
 /// </summary>
 /// <param name="file">The file<see cref="string"/></param>
 /// <returns>The <see cref="string"/></returns>
 public static string GetFileSizeFormatted(string file) => FormatString.FormatFileSize(GetFileSize(file));
Ejemplo n.º 2
0
 /// <summary>
 /// The GetDirectorySizeFormatted
 /// </summary>
 /// <param name="directory">The directory<see cref="string"/></param>
 /// <returns>The <see cref="string"/></returns>
 public static string GetDirectorySizeFormatted(string directory) => FormatString.FormatFileSize(GetDirectorySize(directory));