Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Conversation

@SAKURA-CAT
Copy link
Member

Description

  • fix folder bug
  • refactor: change mode backup --> offline

@SAKURA-CAT SAKURA-CAT requested a review from Copilot June 6, 2025 11:02
@SAKURA-CAT SAKURA-CAT self-assigned this Jun 6, 2025
@SAKURA-CAT SAKURA-CAT added bug Something isn't working enhancement New feature or request labels Jun 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes an issue with folder creation in concurrent environments and updates the operating mode from "backup" to "offline".

  • Update test case to assert the new "offline" mode instead of "backup".
  • Replace the enum member BACKUP with OFFLINE in the environment configuration.
  • Refactor the folder creation logic to add a try/except block to handle concurrent folder creation scenarios and update the project version.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/unit/test_env.py Updated test case to validate the new "offline" mode.
swankit/env.py Replaced "backup" with "offline" in the enum and improved folder creation logic.
pyproject.toml Bumped the project version to reflect the update.

@SAKURA-CAT SAKURA-CAT merged commit 71b4c80 into main Jun 6, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the fix/some-misc branch June 6, 2025 11:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants