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 bug in CREATE when directory is not root #72

Merged

Conversation

fridvin-netapp
Copy link
Contributor

... resulting in response containing file handle that is unusable.

Caused by billy.File.Name() returning full path instead of just filename. Not sure whether this happens on all platforms but at least happens on Mac. Fix uses same approach as that of MKDIR - using filename from request.

... resulting in response containing file handle that is unusable.

Caused by `billy.File.Name()` returning full path instead of just filename.
Not sure whether this happens on all platforms but at least happens on Mac.
Fix uses same approach as that of MKDIR - using filename from request.
Copy link
Owner

@willscott willscott left a comment

Choose a reason for hiding this comment

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

good catch, thanks!

@willscott willscott merged commit 41b3696 into willscott:master Sep 7, 2023
3 checks passed
@fridvin-netapp fridvin-netapp deleted the fix_handle_returned_from_create branch September 7, 2023 15:56
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.

2 participants