Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Issue 2593913003: Make File.create() fail when a directory exists at the same path (Closed)

Created:
4 years ago by zra
Modified:
4 years ago
Reviewers:
Cutch, kasperl
CC:
reviews_dartlang.org, vm-dev_dartlang.org, tvolkert
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make File.create() fail when a directory exists at the same path fixes #28170 R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/f2604a3647fce4f0a6feac34ee152a3dc103acdd

Patch Set 1 #

Patch Set 2 : Fix test for Windows #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -12 lines) Patch
M runtime/bin/file_android.cc View 3 chunks +19 lines, -3 lines 0 comments Download
M runtime/bin/file_fuchsia.cc View 2 chunks +22 lines, -5 lines 0 comments Download
M runtime/bin/file_linux.cc View 3 chunks +19 lines, -2 lines 0 comments Download
M runtime/bin/file_macos.cc View 2 chunks +18 lines, -2 lines 0 comments Download
A tests/standalone/io/file_create_test.dart View 1 1 chunk +48 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (4 generated)
zra
4 years ago (2016-12-21 22:50:57 UTC) #3
Cutch
LGTM. It's too bad we have so much copy-and-pasted code in our file_xxx.cc files.
4 years ago (2016-12-21 23:00:47 UTC) #4
zra
On 2016/12/21 23:00:47, Cutch wrote: > LGTM. It's too bad we have so much copy-and-pasted ...
4 years ago (2016-12-21 23:12:21 UTC) #5
zra
Committed patchset #2 (id:20001) manually as f2604a3647fce4f0a6feac34ee152a3dc103acdd (presubmit successful).
4 years ago (2016-12-21 23:19:29 UTC) #7
kasperl
4 years ago (2016-12-22 08:24:40 UTC) #9
Message was sent while issue was closed.
Can you find another way of testing this? It's causing issues on the build bots
(non-English locales).

https://codereview.chromium.org/2593913003/diff/20001/tests/standalone/io/fil...
File tests/standalone/io/file_create_test.dart (right):

https://codereview.chromium.org/2593913003/diff/20001/tests/standalone/io/fil...
tests/standalone/io/file_create_test.dart:37:
Expect.isTrue(e.toString().contains('Access is denied'));
This is going to fail in non-English locales.

Powered by Google App Engine
This is Rietveld 408576698