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

Issue 2681683005: [dart:io] Adds functions to set file access and modification time (Closed)

Created:
3 years, 10 months ago by zra
Modified:
3 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Hixie
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[dart:io] Adds functions to set file access and modification time fixes #27877 R=asiva@google.com, floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/3f5458cdcba21e694645a1733036c1739106208b

Patch Set 1 #

Patch Set 2 : Implement on Linux and Android #

Patch Set 3 : Fix Build #

Patch Set 4 : Implement on MacOS #

Patch Set 5 : Fuchsia cleanup #

Total comments: 1

Patch Set 6 : Fix sync functions' return types. Format. #

Total comments: 52

Patch Set 7 : Address comments #

Patch Set 8 : Update changelog #

Unified diffs Side-by-side diffs Delta from patch set Stats (+801 lines, -229 lines) Patch
M CHANGELOG.md View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M runtime/bin/file.h View 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/bin/file.cc View 3 chunks +88 lines, -4 lines 0 comments Download
M runtime/bin/file_android.cc View 1 3 chunks +60 lines, -18 lines 0 comments Download
M runtime/bin/file_fuchsia.cc View 1 2 3 4 3 chunks +61 lines, -19 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 3 chunks +60 lines, -18 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 3 chunks +60 lines, -18 lines 0 comments Download
M runtime/bin/file_patch.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/file_win.cc View 1 4 chunks +63 lines, -24 lines 0 comments Download
M runtime/bin/io_natives.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/io_service.h View 1 chunk +30 lines, -27 lines 0 comments Download
M runtime/bin/io_service_no_ssl.h View 1 2 3 4 5 2 chunks +30 lines, -27 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/js_runtime/lib/io_patch.dart View 1 chunk +12 lines, -0 lines 0 comments Download
M sdk/lib/io/common.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/directory_impl.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M sdk/lib/io/file.dart View 1 2 3 4 5 6 21 chunks +83 lines, -28 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 2 3 4 5 6 3 chunks +67 lines, -4 lines 0 comments Download
M sdk/lib/io/file_system_entity.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/io/io_service.dart View 1 chunk +30 lines, -27 lines 0 comments Download
M sdk/lib/io/link.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M tests/standalone/io/file_test.dart View 5 chunks +133 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
zra
https://codereview.chromium.org/2681683005/diff/80001/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (right): https://codereview.chromium.org/2681683005/diff/80001/runtime/vm/kernel_to_il.cc#newcode1814 runtime/vm/kernel_to_il.cc:1814: const intptr_t kLengthLen = strlen("length"); This is to fix ...
3 years, 10 months ago (2017-02-08 17:24:21 UTC) #2
siva
+lrn to review the Dart API changes lgtm with one comment about access time. https://codereview.chromium.org/2681683005/diff/100001/runtime/bin/file_android.cc ...
3 years, 10 months ago (2017-02-08 21:18:29 UTC) #4
zra
https://codereview.chromium.org/2681683005/diff/100001/runtime/bin/file_android.cc File runtime/bin/file_android.cc (right): https://codereview.chromium.org/2681683005/diff/100001/runtime/bin/file_android.cc#newcode479 runtime/bin/file_android.cc:479: times.modtime = millis / kMillisecondsPerSecond; On 2017/02/08 21:18:29, siva ...
3 years, 10 months ago (2017-02-08 21:52:17 UTC) #5
Lasse Reichstein Nielsen
+floitsch - WDYT? https://codereview.chromium.org/2681683005/diff/100001/sdk/lib/io/common.dart File sdk/lib/io/common.dart (right): https://codereview.chromium.org/2681683005/diff/100001/sdk/lib/io/common.dart#newcode29 sdk/lib/io/common.dart:29: return new ArgumentError("$message: $path"); I'm not ...
3 years, 10 months ago (2017-02-09 15:28:04 UTC) #7
floitsch
Dart API LGTM. I have a few nits/suggestions, but nothing major. Thanks! https://codereview.chromium.org/2681683005/diff/100001/sdk/lib/io/file.dart File sdk/lib/io/file.dart ...
3 years, 10 months ago (2017-02-09 16:19:35 UTC) #8
zra
https://codereview.chromium.org/2681683005/diff/100001/runtime/bin/file_fuchsia.cc File runtime/bin/file_fuchsia.cc (right): https://codereview.chromium.org/2681683005/diff/100001/runtime/bin/file_fuchsia.cc#newcode451 runtime/bin/file_fuchsia.cc:451: times.actime = st.st_atime; On 2017/02/08 21:18:29, siva wrote: > ...
3 years, 10 months ago (2017-02-09 17:21:39 UTC) #9
zra
3 years, 10 months ago (2017-02-09 17:45:30 UTC) #11
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
3f5458cdcba21e694645a1733036c1739106208b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698