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

Project Manager fails to create directory when one exists #11804

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

4e6
Copy link
Contributor

@4e6 4e6 commented Dec 6, 2024

Pull Request Description

close #11758

Changelog:

  • update: FileSystemService fails to create directory if one exists

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.

@4e6 4e6 added the CI: No changelog needed Do not require a changelog entry for this PR. label Dec 6, 2024
@4e6 4e6 self-assigned this Dec 6, 2024
@@ -73,7 +73,10 @@ class BlockingFileSystem[F[+_, +_]: Sync: ErrorChannel](
/** @inheritdoc */
override def createDir(path: File): F[FileSystemFailure, Unit] =
Sync[F]
.blockingOp { FileUtils.forceMkdir(path) }
.blockingOp {
if (path.exists()) throw new FileExistsException()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

exists also works as expected on case-insensitive file systems. No other checks needed

@4e6 4e6 added the CI: Ready to merge This PR is eligible for automatic merge label Dec 9, 2024
@mergify mergify bot merged commit 485840f into develop Dec 9, 2024
44 checks passed
@mergify mergify bot deleted the wip/db/11758-renaming-local-assets-side-effects branch December 9, 2024 12:16
jdunkerley pushed a commit that referenced this pull request Dec 10, 2024
close #11758

Changelog:
- update: FileSystemService fails to create directory if one exists

(cherry picked from commit 485840f)
jdunkerley pushed a commit that referenced this pull request Dec 10, 2024
close #11758

Changelog:
- update: FileSystemService fails to create directory if one exists

(cherry picked from commit 485840f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renaming local assets side effects
3 participants