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

fix: Fixed the error case, to return ObjectParentIsFile error when ov… #827

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

0x180
Copy link
Contributor

@0x180 0x180 commented Sep 20, 2024

Fixes #814
os.Stat returns syscall.ENOTDIR , if trying to stat a nested file/directory in an existing file.
e.g.
Existing file: foo
Try to stat: foo/bar
The implementation converts syscall.ENOTDIR os error to s3err.ErrObjectParentIsFile in PutObject in posix.

…erwriting a file object with a nested file object with PutObject in posix
@benmcclelland benmcclelland merged commit 30ffccb into main Sep 20, 2024
17 checks passed
@benmcclelland benmcclelland deleted the fix/put-object-overwrite-file-objs branch September 20, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] - PutObject overwrite file object
2 participants