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

Side by Side Diff: runtime/bin/file_patch.dart

Issue 23444037: dart:io | Change File.fullPath to FileSystemEntity.resolveSymbolicLinks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Documentation edits. Created 7 years, 3 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 | Annotate | Revision Log
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 _FileUtils { 5 patch class _FileUtils {
6 /* patch */ static SendPort _newServicePort() native "File_NewServicePort"; 6 /* patch */ static SendPort _newServicePort() native "File_NewServicePort";
7 } 7 }
8 8
9 patch class _File { 9 patch class _File {
10 /* patch */ static _exists(String path) native "File_Exists"; 10 /* patch */ static _exists(String path) native "File_Exists";
11 /* patch */ static _create(String path) native "File_Create"; 11 /* patch */ static _create(String path) native "File_Create";
12 /* patch */ static _createLink(String path, String target) 12 /* patch */ static _createLink(String path, String target)
13 native "File_CreateLink"; 13 native "File_CreateLink";
14 /* patch */ static _linkTarget(String path) native "File_LinkTarget"; 14 /* patch */ static _linkTarget(String path) native "File_LinkTarget";
15 /* patch */ static _deleteNative(String path) native "File_Delete"; 15 /* patch */ static _deleteNative(String path) native "File_Delete";
16 /* patch */ static _deleteLinkNative(String path) native "File_DeleteLink"; 16 /* patch */ static _deleteLinkNative(String path) native "File_DeleteLink";
17 /* patch */ static _rename(String oldPath, String newPath) 17 /* patch */ static _rename(String oldPath, String newPath)
18 native "File_Rename"; 18 native "File_Rename";
19 /* patch */ static _renameLink(String oldPath, String newPath) 19 /* patch */ static _renameLink(String oldPath, String newPath)
20 native "File_RenameLink"; 20 native "File_RenameLink";
21 /* patch */ static _lengthFromPath(String path) native "File_LengthFromPath"; 21 /* patch */ static _lengthFromPath(String path) native "File_LengthFromPath";
22 /* patch */ static _lastModified(String path) native "File_LastModified"; 22 /* patch */ static _lastModified(String path) native "File_LastModified";
23 /* patch */ static _open(String path, int mode) native "File_Open"; 23 /* patch */ static _open(String path, int mode) native "File_Open";
24 /* patch */ static int _openStdio(int fd) native "File_OpenStdio"; 24 /* patch */ static int _openStdio(int fd) native "File_OpenStdio";
25 /* patch */ static _fullPath(String path) native "File_FullPath";
26 } 25 }
27 26
28 patch class _RandomAccessFile { 27 patch class _RandomAccessFile {
29 /* patch */ static int _close(int id) native "File_Close"; 28 /* patch */ static int _close(int id) native "File_Close";
30 /* patch */ static _readByte(int id) native "File_ReadByte"; 29 /* patch */ static _readByte(int id) native "File_ReadByte";
31 /* patch */ static _read(int id, int bytes) native "File_Read"; 30 /* patch */ static _read(int id, int bytes) native "File_Read";
32 /* patch */ static _readInto(int id, List<int> buffer, int start, int end) 31 /* patch */ static _readInto(int id, List<int> buffer, int start, int end)
33 native "File_ReadInto"; 32 native "File_ReadInto";
34 /* patch */ static _writeByte(int id, int value) native "File_WriteByte"; 33 /* patch */ static _writeByte(int id, int value) native "File_WriteByte";
35 /* patch */ static _writeFrom(int id, List<int> buffer, int start, int end) 34 /* patch */ static _writeFrom(int id, List<int> buffer, int start, int end)
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 150
152 int _watchPath(String path, int events, bool recursive) 151 int _watchPath(String path, int events, bool recursive)
153 native "FileSystemWatcher_WatchPath"; 152 native "FileSystemWatcher_WatchPath";
154 void _unwatchPath() native "FileSystemWatcher_UnwatchPath"; 153 void _unwatchPath() native "FileSystemWatcher_UnwatchPath";
155 List _readEvents() native "FileSystemWatcher_ReadEvents"; 154 List _readEvents() native "FileSystemWatcher_ReadEvents";
156 } 155 }
157 156
158 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { 157 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) {
159 return new Uint8List.view(source.buffer, offsetInBytes, length); 158 return new Uint8List.view(source.buffer, offsetInBytes, length);
160 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698