diff --git a/Directory.Build.props b/Directory.Build.props index 40a36e2..4f35492 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 3.11.0 + 3.12.0 diff --git a/JustArchiNET.Madness/PathMadness/Path.cs b/JustArchiNET.Madness/PathMadness/Path.cs index c977307..4ad10d3 100644 --- a/JustArchiNET.Madness/PathMadness/Path.cs +++ b/JustArchiNET.Madness/PathMadness/Path.cs @@ -4,7 +4,7 @@ // \__ \\__ \| __/| | | || (_| || (_| || | | | // |___/|___/ \___||_| |_| \__,_| \__,_||_| |_| // | -// Copyright 2021-2022 Łukasz "JustArchi" Domeradzki +// Copyright 2021-2023 Łukasz "JustArchi" Domeradzki // Contact: JustArchi@JustArchi.net // | // Licensed under the Apache License, Version 2.0 (the "License"); @@ -167,4 +167,8 @@ public static string GetRelativePath(string relativeTo, string path) { [MadnessType(EMadnessType.Proxy)] public static string GetTempPath() => System.IO.Path.GetTempPath(); + + [MadnessType(EMadnessType.Proxy)] + [Pure] + public static bool IsPathRooted(string? path) => System.IO.Path.IsPathRooted(path); }