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

Fixes #309 - FolderFileStorage doesn't overwrite existing content #310

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

niemyjski
Copy link
Member

File.OpenWrite(fullPath)

  • Opens the file if it exists.
  • Does not truncate the file; it only allows writing from the current position.
  • If the file does not exist, it creates a new file.

FileStream with FileMode.Create

  • Creates a new file or overwrites an existing file.
  • Truncates the file to zero length if it already exists.
  • Opens the file for writing.

@niemyjski niemyjski added the bug label Sep 12, 2024
@niemyjski niemyjski self-assigned this Sep 12, 2024
@niemyjski niemyjski merged commit ad61485 into main Sep 14, 2024
3 checks passed
@niemyjski niemyjski deleted the bugfix/filestorage-file-overwrite branch September 14, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants