From 3bcab0db5161ef95cab358ead56f3b94728b3500 Mon Sep 17 00:00:00 2001 From: erri120 Date: Mon, 6 Apr 2020 14:23:36 +0200 Subject: [PATCH] Renamed File/Directory Attributes to IsFile/Directory --- Wabbajack.CLI/CLIUtils.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Wabbajack.CLI/CLIUtils.cs b/Wabbajack.CLI/CLIUtils.cs index c554bde9..7fe21152 100644 --- a/Wabbajack.CLI/CLIUtils.cs +++ b/Wabbajack.CLI/CLIUtils.cs @@ -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); }