Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.utilities.rest 1.2.6 #13

Merged
merged 1 commit into from
Mar 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
com.utilities.rest 1.2.6
- Added ValidateCacheDirectoryAsync overload
  • Loading branch information
StephenHodgson committed Mar 25, 2023
commit aa58232eb24c90d034a3171d21c5abe05f3342ef
9 changes: 9 additions & 0 deletions Utilities.Rest/Packages/com.utilities.rest/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 Utilities.Rest/Packages/com.utilities.rest/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