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

Issue 2994643002: Add createDirectory() to MemoryFileSystemEntity. (Closed)

Created:
3 years, 4 months ago by scheglov
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add createDirectory() to MemoryFileSystemEntity. We need this API to create a mock SDK in a way that makes ProcessedOptions.validateOptions() to accept it - the SDK root must exist. Alternatively (or in addition to) we could make writeXYZ create parent directories implicitly. So, to "create" a directory, you would need to create a file in this directory. R=ahe@google.com, paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/41bcfaa4a46aa1b90849fdc97950f2f53dd4e72b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -2 lines) Patch
M pkg/front_end/lib/memory_file_system.dart View 3 chunks +22 lines, -1 line 0 comments Download
M pkg/front_end/test/memory_file_system_test.dart View 4 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
3 years, 4 months ago (2017-08-04 16:54:27 UTC) #1
Paul Berry
A counterintuitive behavior of this CL is that you can successfully write a "file" to ...
3 years, 4 months ago (2017-08-04 17:27:23 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 41bcfaa4a46aa1b90849fdc97950f2f53dd4e72b (presubmit successful).
3 years, 4 months ago (2017-08-04 18:45:33 UTC) #4
Siggi Cherem (dart-lang)
lgtm - btw we have some unit tests in processed_options_test that were working around this ...
3 years, 4 months ago (2017-08-05 03:08:41 UTC) #5
scheglov
3 years, 4 months ago (2017-08-06 18:16:39 UTC) #6
Message was sent while issue was closed.
On 2017/08/05 03:08:41, Siggi Cherem (dart-lang) wrote:
> lgtm - btw we have some unit tests in processed_options_test that were working
> around this by writing the directories as if they were empty files. I should
go
> back and fix those to use createDirectory instead.

OK, see https://codereview.chromium.org/2994683002 for this change.

Powered by Google App Engine
This is Rietveld 408576698