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

Side by Side Diff: sdk/lib/io/file_system_entity.dart

Issue 145643010: Remove wrong type in file_system_entity (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added dart2js patch Created 6 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/_internal/lib/io_patch.dart ('k') | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of dart.io; 5 part of dart.io;
6 6
7 class FileSystemEntityType { 7 class FileSystemEntityType {
8 static const FILE = const FileSystemEntityType._internal(0); 8 static const FILE = const FileSystemEntityType._internal(0);
9 static const DIRECTORY = const FileSystemEntityType._internal(1); 9 static const DIRECTORY = const FileSystemEntityType._internal(1);
10 static const LINK = const FileSystemEntityType._internal(2); 10 static const LINK = const FileSystemEntityType._internal(2);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 */ 66 */
67 final int size; 67 final int size;
68 68
69 FileStat._internal(this.changed, 69 FileStat._internal(this.changed,
70 this.modified, 70 this.modified,
71 this.accessed, 71 this.accessed,
72 this.type, 72 this.type,
73 this.mode, 73 this.mode,
74 this.size); 74 this.size);
75 75
76 external static List<int> _statSync(String path); 76 external static _statSync(String path);
77 77
78 78
79 /** 79 /**
80 * Calls the operating system's stat() function on [path]. 80 * Calls the operating system's stat() function on [path].
81 * Returns a [FileStat] object containing the data returned by stat(). 81 * Returns a [FileStat] object containing the data returned by stat().
82 * If the call fails, returns a [FileStat] object with .type set to 82 * If the call fails, returns a [FileStat] object with .type set to
83 * FileSystemEntityType.NOT_FOUND and the other fields invalid. 83 * FileSystemEntityType.NOT_FOUND and the other fields invalid.
84 */ 84 */
85 static FileStat statSync(String path) { 85 static FileStat statSync(String path) {
86 // Trailing path is not supported on Windows. 86 // Trailing path is not supported on Windows.
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 return buffer.toString(); 764 return buffer.toString();
765 } 765 }
766 } 766 }
767 767
768 768
769 class _FileSystemWatcher { 769 class _FileSystemWatcher {
770 external static Stream<FileSystemEvent> watch( 770 external static Stream<FileSystemEvent> watch(
771 String path, int events, bool recursive); 771 String path, int events, bool recursive);
772 external static bool get isSupported; 772 external static bool get isSupported;
773 } 773 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/lib/io_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698