Class PathValidator
Static class that contains path validation methods.
Inherited Members
Namespace: Evergine.Common.IO
Assembly: Evergine.Common.dll
Syntax
public static class PathValidator
Methods
EnsureCorrectFileSystemName(string)
Ensures the correct file system name.
Declaration
public static void EnsureCorrectFileSystemName(string filename)
Parameters
Type | Name | Description |
---|---|---|
string | filename | The filename. |
Remarks
Throws an exception if filename
is not a correct file system path, otherwise no.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentException |
|
EnsureCorrectFileSystemPath(string)
Ensures the correct file system path.
Declaration
public static void EnsureCorrectFileSystemPath(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path to file or directory. |
Remarks
Throws an exception if path
is not a correct file system path, otherwise no.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentException |
|