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

Error on Invalidate empty CacheStorage #12

Closed
MatheusMoura17 opened this issue Jul 29, 2022 · 1 comment · Fixed by #13
Closed

Error on Invalidate empty CacheStorage #12

MatheusMoura17 opened this issue Jul 29, 2022 · 1 comment · Fixed by #13
Labels
bug Something isn't working released

Comments

@MatheusMoura17
Copy link
Contributor

MatheusMoura17 commented Jul 29, 2022

Behaviour

cacheStorage.Invlidate(); throws DirectoryNotFoundException when the directory not exists yet.

Expected Behaviour

If the directory is not found, cacheStorage.Invlidate(); shold be ignored.

Error Stack

DirectoryNotFoundException: Could not find a part of the path "C:/Users/Matheus Moura/AppData/LocalLow/Homy Game Studio/Tower Stacker/pictures/b7286587de4425770717ffdac19fa1faa360fdeb5b5cb07676ecf492e2d121d4".
System.IO.File.Delete (System.String path) (at <695d1cc93cca45069c528c15c9fdd749>:0)
HGS.LocalStorage.Utils.FileUtility.Delete (System.String path) (at Library/PackageCache/com.hgs.local-storage@1a34572c28/Runtime/Scripts/Utils/FileUtility.cs:34)
HGS.LocalStorage.CacheStorage.InvalidateFile (System.String path) (at Library/PackageCache/com.hgs.local-storage@1a34572c28/Runtime/Scripts/CacheStorage.cs:29)
HGS.LocalStorage.CacheStorage.Invalidate (System.String key) (at Library/PackageCache/com.hgs.local-storage@1a34572c28/Runtime/Scripts/CacheStorage.cs:16)
HGS.LocalStorage.CacheStorage.Exists (System.String key) (at Library/PackageCache/com.hgs.local-storage@1a34572c28/Runtime/Scripts/CacheStorage.cs:41)
HGS.TinyPuzzleToolkit.StateDrawers.SpriteDownloadStateDrawer.Draw () (at C:/Users/Matheus Moura/workspace/hgs/hgs-unity-tiny-puzzle-toolkit/Assets/Package/Runtime/Scripts/StateDrawers/SpriteDownloadStateDrawer.cs:44)
HGS.TinyPuzzleToolkit.StateDrawers.SpriteDownloadStateDrawer.OnEnable () (at C:/Users/Matheus Moura/workspace/hgs/hgs-unity-tiny-puzzle-toolkit/Assets/Package/Runtime/Scripts/StateDrawers/SpriteDownloadStateDrawer.cs:24)
``
@MatheusMoura17 MatheusMoura17 added bug Something isn't working good first issue Good for newcomers and removed good first issue Good for newcomers labels Jul 29, 2022
@MatheusMoura17 MatheusMoura17 changed the title Error on clear empty storage Error on Invalidate empty CacheStorage Jul 29, 2022
@MatheusMoura17 MatheusMoura17 linked a pull request Jul 29, 2022 that will close this issue
@MatheusMoura17
Copy link
Contributor Author

🎉 This issue has been resolved in version 1.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant