| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |