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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 @patch class _File { 5 @patch class _File {
6 @patch static _exists(String path) native "File_Exists"; 6 @patch static _exists(String path) native "File_Exists";
7 @patch static _create(String path) native "File_Create"; 7 @patch static _create(String path) native "File_Create";
8 @patch static _createLink(String path, String target) 8 @patch static _createLink(String path, String target)
9 native "File_CreateLink"; 9 native "File_CreateLink";
10 @patch static _linkTarget(String path) native "File_LinkTarget"; 10 @patch static _linkTarget(String path) native "File_LinkTarget";
11 @patch static _deleteNative(String path) native "File_Delete"; 11 @patch static _deleteNative(String path) native "File_Delete";
12 @patch static _deleteLinkNative(String path) native "File_DeleteLink"; 12 @patch static _deleteLinkNative(String path) native "File_DeleteLink";
13 @patch static _rename(String oldPath, String newPath) 13 @patch static _rename(String oldPath, String newPath)
14 native "File_Rename"; 14 native "File_Rename";
15 @patch static _renameLink(String oldPath, String newPath) 15 @patch static _renameLink(String oldPath, String newPath)
16 native "File_RenameLink"; 16 native "File_RenameLink";
17 @patch static _copy(String oldPath, String newPath) native "File_Copy"; 17 @patch static _copy(String oldPath, String newPath) native "File_Copy";
18 @patch static _lengthFromPath(String path) native "File_LengthFromPath"; 18 @patch static _lengthFromPath(String path) native "File_LengthFromPath";
19 @patch static _lastModified(String path) native "File_LastModified"; 19 @patch static _lastModified(String path) native "File_LastModified";
20 @patch static _setLastModified(String path, int millis)
21 native "File_SetLastModified";
22 @patch static _lastAccessed(String path) native "File_LastAccessed";
23 @patch static _setLastAccessed(String path, int millis)
24 native "File_SetLastAccessed";
20 @patch static _open(String path, int mode) native "File_Open"; 25 @patch static _open(String path, int mode) native "File_Open";
21 @patch static int _openStdio(int fd) native "File_OpenStdio"; 26 @patch static int _openStdio(int fd) native "File_OpenStdio";
22 } 27 }
23 28
24 29
25 @patch class _RandomAccessFileOps { 30 @patch class _RandomAccessFileOps {
26 @patch factory _RandomAccessFileOps(int pointer) 31 @patch factory _RandomAccessFileOps(int pointer)
27 => new _RandomAccessFileOpsImpl(pointer); 32 => new _RandomAccessFileOpsImpl(pointer);
28 } 33 }
29 34
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 void _pathWatchedEnd() { 380 void _pathWatchedEnd() {
376 _subscription.cancel(); 381 _subscription.cancel();
377 _controller.close(); 382 _controller.close();
378 } 383 }
379 } 384 }
380 385
381 386
382 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { 387 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) {
383 return new Uint8List.view(source.buffer, offsetInBytes, length); 388 return new Uint8List.view(source.buffer, offsetInBytes, length);
384 } 389 }
OLDNEW
« 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