-
-
Notifications
You must be signed in to change notification settings - Fork 448
Fix storage save directory issue #3452
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
Conversation
🚨 Warning: Approaching Monthly Automation Limit Monthly PRs automated: 233/250 Your organization has used over 90% of its monthly quota for gitStream automations. Once the quota is reached, new pull requests for this month will not trigger gitStream automations and will be marked as “Skipped”. To avoid interruptions, consider optimizing your automation usage or upgrading your plan by contacting LinearB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
Flow.Launcher.Infrastructure/Storage/JsonStorage.cs:187
- Confirm that FilesFolders.ValidateDirectory creates the directory if it does not exist; otherwise, File.WriteAllText might still fail if the directory is missing.
FilesFolders.ValidateDirectory(DirectoryPath);
Flow.Launcher.Infrastructure/Storage/BinaryStorage.cs:86
- Ensure that ValidateDirectory creates the directory as needed to avoid potential issues when File.WriteAllBytes is called.
FilesFolders.ValidateDirectory(DirectoryPath);
Flow.Launcher.Infrastructure/Storage/BinaryStorage.cs:109
- Verify that ValidateDirectory creates the directory; otherwise, FileStream creation in SaveAsync could fail if the directory does not exist.
FilesFolders.ValidateDirectory(DirectoryPath);
This comment has been minimized.
This comment has been minimized.
🥷 Code experts: no user but you matched threshold 10 Jack251970 has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
Look good to me. |
📝 WalkthroughWalkthroughThe pull request enhances the robustness of file operations by introducing directory validation in the storage classes. Both the Changes
Sequence Diagram(s)sequenceDiagram
participant C as Caller
participant S as Storage (Binary/Json)
participant D as FilesFolders
participant F as File System
C->>S: Save(Data)
S->>D: ValidateDirectory(DirectoryPath)
D-->>S: Directory exists
S->>F: Serialize & Write Data
F-->>S: Write Confirmation
S-->>C: Return Confirmation
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. If the flagged items are 🤯 false positivesIf items relate to a ...
|
Check directory before saving storage to fix
System.IO.DirectoryNotFoundException: Could not find a part of the path
.Add old constructor for old
Program
plugin.Fix #3451.