mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Renamed File/Directory Attributes to IsFile/Directory
This commit is contained in:
parent
b8be153c99
commit
3bcab0db51
@ -9,10 +9,10 @@ using Wabbajack.Common;
|
||||
namespace Wabbajack.CLI
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property)]
|
||||
internal class FileAttribute : Attribute { }
|
||||
internal class IsFileAttribute : Attribute { }
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property)]
|
||||
internal class DirectoryAttribute : Attribute { }
|
||||
internal class IsDirectoryAttribute : Attribute { }
|
||||
|
||||
internal static class CLIUtils
|
||||
{
|
||||
@ -50,12 +50,12 @@ namespace Wabbajack.CLI
|
||||
|
||||
var value = (string)valueObject;
|
||||
|
||||
if (p.HasAttribute(typeof(FileAttribute)))
|
||||
if (p.HasAttribute(typeof(IsFileAttribute)))
|
||||
{
|
||||
valid = File.Exists(value);
|
||||
}
|
||||
|
||||
if (p.HasAttribute(typeof(DirectoryAttribute)))
|
||||
if (p.HasAttribute(typeof(IsDirectoryAttribute)))
|
||||
{
|
||||
valid = Directory.Exists(value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user