Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 72f702a

Browse files
committed
Add IsPathRooted proxy
1 parent 65d7329 commit 72f702a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>3.11.0</Version>
3+
<Version>3.12.0</Version>
44
</PropertyGroup>
55

66
<PropertyGroup>

JustArchiNET.Madness/PathMadness/Path.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// \__ \\__ \| __/| | | || (_| || (_| || | | |
55
// |___/|___/ \___||_| |_| \__,_| \__,_||_| |_|
66
// |
7-
// Copyright 2021-2022 Łukasz "JustArchi" Domeradzki
7+
// Copyright 2021-2023 Łukasz "JustArchi" Domeradzki
88
// Contact: JustArchi@JustArchi.net
99
// |
1010
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -167,4 +167,8 @@ public static string GetRelativePath(string relativeTo, string path) {
167167

168168
[MadnessType(EMadnessType.Proxy)]
169169
public static string GetTempPath() => System.IO.Path.GetTempPath();
170+
171+
[MadnessType(EMadnessType.Proxy)]
172+
[Pure]
173+
public static bool IsPathRooted(string? path) => System.IO.Path.IsPathRooted(path);
170174
}

0 commit comments

Comments
 (0)