Skip to content

fix EZ _is_writable_sync Windows compatibility (NotImplementedError) - #179

Open
Chowwyie wants to merge 1 commit into
open-webui:mainfrom
Chowwyie:main
Open

Chowwyie wants to merge 1 commit into
open-webui:mainfrom
Chowwyie:main

Conversation

@Chowwyie

@Chowwyie Chowwyie commented Sep 20, 2026 •

Copy link
Copy Markdown

When running directly on Windows machine, directory listing operations failed. Noticed it in OpenWebUI integration.

  • Catch NotImplementedError as the primary fallback since os.access(..., effective_ids=True) is not implemented on Windows
  • Also catch AttributeError, OSError, and TypeError cuz llm said it would be good :P
before (500, cant list directory in windows) after (it can)
Capture Capture2

Fixes #174

- Catch NotImplementedError as the primary fallback since os.access(..., effective_ids=True) is not implemented on Windows
- Also catch AttributeError, OSError, and TypeError as supplementary guards
- Prevents crashes when checking file writability on Windows platforms, primarily fixing directory listing operations (/files/list, stat, listdir)

Fixes open-webui#174
@Chowwyie Chowwyie changed the title Fix _is_writable_sync Windows compatibility (NotImplementedError) fix EZ _is_writable_sync Windows compatibility (NotImplementedError) Sep 20, 2026

This branch has not been deployed

No deployments
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.

_is_writeable_sync issue Windows

1 participant