| Index: runtime/bin/directory_patch.dart
|
| diff --git a/runtime/bin/directory_patch.dart b/runtime/bin/directory_patch.dart
|
| index 5e4d24c57a85f927b621de1876d7ca8977d24052..dbb6bd924d36d9acab33173f2c82a1cc20f72fdf 100644
|
| --- a/runtime/bin/directory_patch.dart
|
| +++ b/runtime/bin/directory_patch.dart
|
| @@ -5,23 +5,27 @@
|
| @patch
|
| class _Directory {
|
| @patch
|
| - static _current() native "Directory_Current";
|
| + static _current(_Namespace namespace) native "Directory_Current";
|
| @patch
|
| - static _setCurrent(path) native "Directory_SetCurrent";
|
| + static _setCurrent(_Namespace namespace, path) native "Directory_SetCurrent";
|
| @patch
|
| - static _createTemp(String path) native "Directory_CreateTemp";
|
| + static _createTemp(_Namespace namespace, String path)
|
| + native "Directory_CreateTemp";
|
| @patch
|
| - static String _systemTemp() native "Directory_SystemTemp";
|
| + static String _systemTemp(_Namespace namespace) native "Directory_SystemTemp";
|
| @patch
|
| - static _exists(String path) native "Directory_Exists";
|
| + static _exists(_Namespace namespace, String path) native "Directory_Exists";
|
| @patch
|
| - static _create(String path) native "Directory_Create";
|
| + static _create(_Namespace namespace, String path) native "Directory_Create";
|
| @patch
|
| - static _deleteNative(String path, bool recursive) native "Directory_Delete";
|
| + static _deleteNative(_Namespace namespace, String path, bool recursive)
|
| + native "Directory_Delete";
|
| @patch
|
| - static _rename(String path, String newPath) native "Directory_Rename";
|
| + static _rename(_Namespace namespace, String path, String newPath)
|
| + native "Directory_Rename";
|
| @patch
|
| static void _fillWithDirectoryListing(
|
| + _Namespace namespace,
|
| List<FileSystemEntity> list,
|
| String path,
|
| bool recursive,
|
| @@ -50,7 +54,7 @@ class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1
|
| // Corelib 'Uri.base' implementation.
|
| // Uri.base is susceptible to changes in the current working directory.
|
| Uri _uriBaseClosure() {
|
| - var result = _Directory._current();
|
| + var result = _Directory._current(_Namespace._namespace);
|
| if (result is OSError) {
|
| throw new FileSystemException(
|
| "Getting current working directory failed", "", result);
|
|
|