File utilities.
More...
|
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.
|
|
◆ GetExtensionFromFileName()
static string Mku.Utils.FileUtils.GetExtensionFromFileName |
( |
string | fileName | ) |
|
|
static |
Return the extension of a filename.
- Parameters
-
◆ GetFileNameWithoutExtension()
static string Mku.Utils.FileUtils.GetFileNameWithoutExtension |
( |
string | fileName | ) |
|
|
static |
Return a filename without extension.
- Parameters
-
◆ IsAudio()
static bool Mku.Utils.FileUtils.IsAudio |
( |
string | filename | ) |
|
|
static |
Detect if filename is an audio file.
- Parameters
-
- Returns
- True if audio file.
◆ IsImage()
static bool Mku.Utils.FileUtils.IsImage |
( |
string | filename | ) |
|
|
static |
Detect if filename is an image file.
- Parameters
-
- Returns
- True if image file.
◆ IsPdf()
static bool Mku.Utils.FileUtils.IsPdf |
( |
string | filename | ) |
|
|
static |
Detect if filename is a pdf file.
- Parameters
-
- Returns
- True if pdf file.
◆ IsText()
static bool Mku.Utils.FileUtils.IsText |
( |
string | filename | ) |
|
|
static |
Detect if filename is a text file.
- Parameters
-
- Returns
- True if text file.
◆ IsVideo()
static bool Mku.Utils.FileUtils.IsVideo |
( |
string | filename | ) |
|
|
static |
Detect if filename is a video file.
- Parameters
-
- Returns
- True if video file.
The documentation for this class was generated from the following file: