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

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

Issue 2973823002: Revert "Remaining private libs" (Closed)
Patch Set: Created 3 years, 5 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 | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/eventhandler.dart » ('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 part of "dart:io"; 5 part of "io.dart";
6 6
7 class _Directory extends FileSystemEntity implements Directory { 7 class _Directory extends FileSystemEntity implements Directory {
8 final String path; 8 final String path;
9 9
10 _Directory(this.path) { 10 _Directory(this.path) {
11 if (path is! String) { 11 if (path is! String) {
12 throw new ArgumentError('${Error.safeToString(path)} ' 12 throw new ArgumentError('${Error.safeToString(path)} '
13 'is not a String'); 13 'is not a String');
14 } 14 }
15 } 15 }
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 responseError[_OSERROR_RESPONSE_ERROR_CODE]); 381 responseError[_OSERROR_RESPONSE_ERROR_CODE]);
382 var errorPath = message[RESPONSE_PATH]; 382 var errorPath = message[RESPONSE_PATH];
383 if (errorPath == null) errorPath = path; 383 if (errorPath == null) errorPath = path;
384 controller.addError( 384 controller.addError(
385 new FileSystemException("Directory listing failed", errorPath, err)); 385 new FileSystemException("Directory listing failed", errorPath, err));
386 } else { 386 } else {
387 controller.addError(new FileSystemException("Internal error")); 387 controller.addError(new FileSystemException("Internal error"));
388 } 388 }
389 } 389 }
390 } 390 }
OLDNEW
« no previous file with comments | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/eventhandler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698