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

feat: use correct windows temp directory #182

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RihanArfan
Copy link

@RihanArfan RihanArfan commented Aug 2, 2024

Resolves #178

On Windows, the template cache is moved to the user's temp directory (%temp%/giget). This follows the correct OS conventions and allows Windows storage utils (Disk Clean-up, Storage Sense) to delete the cache to free storage if the user desires.

It will move the cache directory if oldDir && !newDir. This logic requires running resolve() to get both the Windows and other OS cache paths at the same time and existsSync() twice on Windows. We remove the migration code after some time in the future, and simplify to 437adc3 (#182)

store template cache within the windows user's temp directory (%temp%)
@RihanArfan RihanArfan changed the title feat: feat: use correct windows temp directory feat: use correct windows temp directory Aug 2, 2024
@RihanArfan RihanArfan marked this pull request as ready for review August 2, 2024 11:19
@RihanArfan RihanArfan force-pushed the feat/windows-temp-dir branch from d12b1b5 to 6900924 Compare August 2, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move cache directory on Windows to AppData
1 participant