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

Unified Diff: runtime/bin/file_patch.dart

Issue 2681683005: [dart:io] Adds functions to set file access and modification time (Closed)
Patch Set: Update changelog Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_patch.dart
diff --git a/runtime/bin/file_patch.dart b/runtime/bin/file_patch.dart
index 5e4b16a0319ae568afd8ef599b93b46f2c09751e..ec98f044f9d8de788798ec7e176c7333d74dfec0 100644
--- a/runtime/bin/file_patch.dart
+++ b/runtime/bin/file_patch.dart
@@ -17,6 +17,11 @@
@patch static _copy(String oldPath, String newPath) native "File_Copy";
@patch static _lengthFromPath(String path) native "File_LengthFromPath";
@patch static _lastModified(String path) native "File_LastModified";
+ @patch static _setLastModified(String path, int millis)
+ native "File_SetLastModified";
+ @patch static _lastAccessed(String path) native "File_LastAccessed";
+ @patch static _setLastAccessed(String path, int millis)
+ native "File_SetLastAccessed";
@patch static _open(String path, int mode) native "File_Open";
@patch static int _openStdio(int fd) native "File_OpenStdio";
}
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698