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

Commit

Permalink
Add Path.GetRandomFileName() (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abrynos authored Oct 21, 2023
1 parent 64c69df commit aa4b237
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions JustArchiNET.Madness/PathMadness/Path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public static class Path {
[Pure]
public static string GetFullPath(string path) => System.IO.Path.GetFullPath(path);

[ContractAnnotation("=>notnull")]
[MadnessType(EMadnessType.Proxy)]
public static string GetRandomFileName() => System.IO.Path.GetRandomFileName();

#if NETSTANDARD2_1_OR_GREATER
[MadnessType(EMadnessType.Proxy)]
public static string GetRelativePath(string relativeTo, string path) => System.IO.Path.GetRelativePath(relativeTo, path);
Expand Down

0 comments on commit aa4b237

Please sign in to comment.