| Index: pkg/analyzer/lib/file_system/physical_file_system.dart
|
| diff --git a/pkg/analyzer/lib/file_system/physical_file_system.dart b/pkg/analyzer/lib/file_system/physical_file_system.dart
|
| index 66125a69fa7c53ecbf54d95e10ff4d31d007ddbe..1088fcccd87e592452b15a347b17910c2e1c9350 100644
|
| --- a/pkg/analyzer/lib/file_system/physical_file_system.dart
|
| +++ b/pkg/analyzer/lib/file_system/physical_file_system.dart
|
| @@ -132,21 +132,21 @@ class _PhysicalFile extends _PhysicalResource implements File {
|
| }
|
|
|
| @override
|
| - void writeAsBytesSync(List<int> bytes) {
|
| + Resource renameSync(String newPath) {
|
| try {
|
| io.File file = _entry as io.File;
|
| - file.writeAsBytesSync(bytes);
|
| + io.File newFile = file.renameSync(newPath);
|
| + return new _PhysicalFile(newFile);
|
| } on io.FileSystemException catch (exception) {
|
| throw new FileSystemException(exception.path, exception.message);
|
| }
|
| }
|
|
|
| @override
|
| - Resource renameSync(String newPath) {
|
| + void writeAsBytesSync(List<int> bytes) {
|
| try {
|
| io.File file = _entry as io.File;
|
| - io.File newFile = file.renameSync(newPath);
|
| - return new _PhysicalFile(newFile);
|
| + file.writeAsBytesSync(bytes);
|
| } on io.FileSystemException catch (exception) {
|
| throw new FileSystemException(exception.path, exception.message);
|
| }
|
|
|