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

corrected description about createNew of open in file-system.mdx #2813

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

HeveraletLaidCenx
Copy link

Description

  • What does this PR change? Give us a brief description.

    The original description about createNew of open is exactly the opposite of the actual effect. Correct it after test.

  • Closes #

The original description is exactly the opposite of the actual effect.
Copy link

netlify bot commented Oct 7, 2024

Deploy Preview for tauri-v2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 550bd03
🔍 Latest deploy log https://app.netlify.com/sites/tauri-v2/deploys/6703e932185d45000813ce95
😎 Deploy Preview https://deploy-preview-2813--tauri-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@vasfvitor vasfvitor left a comment

Choose a reason for hiding this comment

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

thanks for this, I left a suggestion

Comment on lines +333 to +337
`createNew` works similarly to `create`, but as its name suggests, it is only takes effect when **New**:

That is, only allowed to be executed when the file to be opened does not exist.

Otherwise, the operation failed and raise an error like: `failed to open file at path: *the file path* with error: The file exists. (os error 80)`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I saw your (?) comment somewhere about that it's quite the opposite way it was written before. I think we can simplify by just matching that "it fails if the file already exists" or something. No need to mention the error or explain "in other words".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

2 participants