| Index: sdk/lib/io/file_system_entity.dart
|
| ===================================================================
|
| --- sdk/lib/io/file_system_entity.dart (revision 34928)
|
| +++ sdk/lib/io/file_system_entity.dart (working copy)
|
| @@ -659,7 +659,7 @@
|
| static String _trimTrailingPathSeparators(String path) {
|
| // Don't handle argument errors here.
|
| if (path is! String) return path;
|
| - if (Platform.operatingSystem == 'windows') {
|
| + if (Platform.isWindows) {
|
| while (path.length > 1 &&
|
| (path.endsWith(Platform.pathSeparator) ||
|
| path.endsWith('/'))) {
|
| @@ -677,7 +677,7 @@
|
| // Don't handle argument errors here.
|
| if (path is! String) return path;
|
| if (path.isEmpty) path = '.';
|
| - if (Platform.operatingSystem == 'windows') {
|
| + if (Platform.isWindows) {
|
| while (!path.endsWith(Platform.pathSeparator) && !path.endsWith('/')) {
|
| path = "$path${Platform.pathSeparator}";
|
| }
|
|
|