Skip to content

Commit

Permalink
com.utilities.rest 1.2.6 (#13)
Browse files Browse the repository at this point in the history
- Added ValidateCacheDirectoryAsync overload
  • Loading branch information
StephenHodgson committed Mar 25, 2023
1 parent e2a43fd commit c4f8c71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Runtime/Rest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,15 @@ public static void ValidateCacheDirectory()
}
}

/// <summary>
/// Creates the <see cref="DownloadCacheDirectory"/> if it doesn't exist.
/// </summary>
public static async Task ValidateCacheDirectoryAsync()
{
await Awaiters.UnityMainThread;
ValidateCacheDirectory();
}

/// <summary>
/// Try to get a file out of the download cache by uri reference.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Utilities.Rest",
"description": "This package contains useful RESTful utilities for the Unity Game Engine.",
"keywords": [],
"version": "1.2.5",
"version": "1.2.6",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest/releases",
Expand Down

0 comments on commit c4f8c71

Please sign in to comment.