Skip to content

fix: handle existing cache directory in _loadCache() - #4

Open
liooooo29 wants to merge 1 commit into
ignaci0:mainfrom
liooooo29:fix/cache-dir-exists
Open

fix: handle existing cache directory in _loadCache()#4
liooooo29 wants to merge 1 commit into
ignaci0:mainfrom
liooooo29:fix/cache-dir-exists

Conversation

@liooooo29

Copy link
Copy Markdown

Problem

When the cache directory () already exists but is missing, throws:

This causes the entire extension to enter ERROR state and become non-functional until GNOME Shell is restarted.

Fix

Check if the parent directory exists before calling in .

When the cache directory (~/.cache/appimage-manager/) already exists
but cache.json is missing, make_directory_with_parents() throws
Gio.IOErrorEnum: "Error creating directory ... File exists", causing
the extension to enter ERROR state.

Check if the parent directory exists before attempting to create it.
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.

1 participant