364dd8936b
R=brianwilkerson@google.com Change-Id: I70f80baa3da4b14c0a52c1f28da16a9ad26d7dda Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127424 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
20 lines
623 B
Dart
20 lines
623 B
Dart
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
import "dart:io";
|
|
|
|
import "package:analyzer/src/generated/java_io.dart";
|
|
|
|
class FileUtilities2 {
|
|
static JavaFile createFile(String path) {
|
|
return JavaFile(path).getAbsoluteFile();
|
|
}
|
|
}
|
|
|
|
class OSUtilities {
|
|
static String LINE_SEPARATOR = isWindows() ? '\r\n' : '\n';
|
|
static bool isMac() => Platform.operatingSystem == 'macos';
|
|
static bool isWindows() => Platform.operatingSystem == 'windows';
|
|
}
|