mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
AbsolutePath ctor reuse
This commit is contained in:
parent
f66c59151b
commit
68ea31e5a0
@ -52,14 +52,7 @@ namespace Wabbajack.Common
|
||||
|
||||
private readonly string _path;
|
||||
|
||||
public AbsolutePath(string path)
|
||||
{
|
||||
_path = path.ToLowerInvariant().Replace("/", "\\").TrimEnd('\\');
|
||||
Extension = new Extension(Path.GetExtension(_path));
|
||||
ValidateAbsolutePath();
|
||||
}
|
||||
|
||||
public AbsolutePath(string path, bool skipValidation)
|
||||
public AbsolutePath(string path, bool skipValidation = false)
|
||||
{
|
||||
_path = path.ToLowerInvariant().Replace("/", "\\").TrimEnd('\\');
|
||||
Extension = Extension.FromPath(path);
|
||||
|
Loading…
Reference in New Issue
Block a user