AcManager.Tools.GameProperties.ReplaysExtensionSetter.HasWithExtension C# (CSharp) Method

HasWithExtension() public static method

public static HasWithExtension ( ) : bool
return bool
        public static bool HasWithExtension() {
            try {
                return Directory.GetFiles(FileUtils.GetReplaysDirectory()).Any(file => file.EndsWith(ReplayObject.ReplayExtension));
            } catch (Exception e) {
                Logging.Error("Can’t get files with extension: " + e);
                return false;
            }
        }
    }