dart-sdk/runtime/bin/file_system_entity_patch.dart
Zachary Anderson dcd275fa74 [dart:io] Begins work on mocking support
Change-Id: I770ed9485a934af07e570fbad3f3fb84ebef973d
Reviewed-on: https://dart-review.googlesource.com/3302
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-10-10 17:39:12 +00:00

24 lines
745 B
Dart

// Copyright (c) 2013, 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.
// part of "common_patch.dart";
@patch
class FileStat {
@patch
static _statSync(_Namespace namespace, String path) native "File_Stat";
}
@patch
class FileSystemEntity {
@patch
static _getTypeNative(_Namespace namespace, String path, bool followLinks)
native "File_GetType";
@patch
static _identicalNative(_Namespace namespace, String path1, String path2)
native "File_AreIdentical";
@patch
static _resolveSymbolicLinks(_Namespace namespace, String path)
native "File_ResolveSymbolicLinks";
}