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

Commit

Permalink
Add IsPathRooted proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Apr 20, 2023
1 parent 65d7329 commit 72f702a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>3.11.0</Version>
<Version>3.12.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
6 changes: 5 additions & 1 deletion JustArchiNET.Madness/PathMadness/Path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// \__ \\__ \| __/| | | || (_| || (_| || | | |
// |___/|___/ \___||_| |_| \__,_| \__,_||_| |_|
// |
// Copyright 2021-2022 Łukasz "JustArchi" Domeradzki
// Copyright 2021-2023 Łukasz "JustArchi" Domeradzki
// Contact: [email protected]
// |
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -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);
}

0 comments on commit 72f702a

Please sign in to comment.