Salmon
Loading...
Searching...
No Matches
Mku.Utils.FileUtils Class Reference

File utilities. More...

Static Public Member Functions

static bool IsText (string filename)
 Detect if filename is a text file.
 
static bool IsImage (string filename)
 Detect if filename is an image file.
 
static bool IsAudio (string filename)
 Detect if filename is an audio file.
 
static bool IsVideo (string filename)
 Detect if filename is a video file.
 
static bool IsPdf (string filename)
 Detect if filename is a pdf file.
 
static string GetExtensionFromFileName (string fileName)
 Return the extension of a filename.
 
static string GetFileNameWithoutExtension (string fileName)
 Return a filename without extension.
 

Detailed Description

File utilities.

Member Function Documentation

◆ GetExtensionFromFileName()

static string Mku.Utils.FileUtils.GetExtensionFromFileName ( string fileName)
static

Return the extension of a filename.

Parameters
fileNameThe file name

◆ GetFileNameWithoutExtension()

static string Mku.Utils.FileUtils.GetFileNameWithoutExtension ( string fileName)
static

Return a filename without extension.

Parameters
fileNameThe file name

◆ IsAudio()

static bool Mku.Utils.FileUtils.IsAudio ( string filename)
static

Detect if filename is an audio file.

Parameters
filenameThe filename.
Returns
True if audio file.

◆ IsImage()

static bool Mku.Utils.FileUtils.IsImage ( string filename)
static

Detect if filename is an image file.

Parameters
filenameThe filename.
Returns
True if image file.

◆ IsPdf()

static bool Mku.Utils.FileUtils.IsPdf ( string filename)
static

Detect if filename is a pdf file.

Parameters
filenameThe filename.
Returns
True if pdf file.

◆ IsText()

static bool Mku.Utils.FileUtils.IsText ( string filename)
static

Detect if filename is a text file.

Parameters
filenameThe filename.
Returns
True if text file.

◆ IsVideo()

static bool Mku.Utils.FileUtils.IsVideo ( string filename)
static

Detect if filename is a video file.

Parameters
filenameThe filename.
Returns
True if video file.

The documentation for this class was generated from the following file: