Skip to content

ARROW-13092: [C++] Return an error in CreateDir if target is a file - #10541

Closed
pitrou wants to merge 1 commit into
apache:masterfrom
pitrou:ARROW-13092-create-dir-is-a-file
Closed

ARROW-13092: [C++] Return an error in CreateDir if target is a file#10541
pitrou wants to merge 1 commit into
apache:masterfrom
pitrou:ARROW-13092-create-dir-is-a-file

Conversation

@pitrou

Copy link
Copy Markdown
Member

No description provided.

@github-actions

Copy link
Copy Markdown

@pitrou
pitrouforce-pushed the ARROW-13092-create-dir-is-a-file branch from 45b94f6 to a712a23CompareJune 16, 2021 13:01
@pitrou
pitrou marked this pull request as ready for review June 16, 2021 13:11
@pitrou
pitrou requested a review from bkietzJune 16, 2021 13:21
Comment threadcpp/src/arrow/util/io_util_test.cc Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I checked and this code does the right thing with symlinks today (There is a S_ISLNK but you have to use lstat to get it) 👍 . I'm not sure if you want to add a test case or not.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I'd rather not complicate the tests with that (especially as it would require some symlink creation code for Windows).

Comment threadcpp/src/arrow/filesystem/test_util.cc Outdated
@pitrou
pitrouforce-pushed the ARROW-13092-create-dir-is-a-file branch from a712a23 to 8909d43CompareJune 17, 2021 17:38
@pitrou
pitrou deleted the ARROW-13092-create-dir-is-a-file branch June 17, 2021 19:36
sjperkins pushed a commit to sjperkins/arrow that referenced this pull request Jun 23, 2021
Closesapache#10541 from pitrou/ARROW-13092-create-dir-is-a-file
Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pitrou@bkietz@westonpace