Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: sdk/lib/io/file_system_entity.dart

Issue 2681683005: [dart:io] Adds functions to set file access and modification time (Closed)
Patch Set: Update changelog Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/io_service.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file_system_entity.dart
diff --git a/sdk/lib/io/file_system_entity.dart b/sdk/lib/io/file_system_entity.dart
index 2a4a1f5140fd857e4b37bd0b932e4dc7776cc106..fe4777e5cb4a068dd9f1f3dd79c05cb12f357075 100644
--- a/sdk/lib/io/file_system_entity.dart
+++ b/sdk/lib/io/file_system_entity.dart
@@ -359,7 +359,7 @@ abstract class FileSystemEntity {
* with .type set to
* FileSystemEntityType.NOT_FOUND and the other fields invalid.
*/
- Future<FileStat> stat();
+ Future<FileStat> stat() => FileStat.stat(path);
/**
* Synchronously calls the operating system's stat() function on the
@@ -371,7 +371,7 @@ abstract class FileSystemEntity {
* If the call fails, returns a [FileStat] object with .type set to
* FileSystemEntityType.NOT_FOUND and the other fields invalid.
*/
- FileStat statSync();
+ FileStat statSync() => FileStat.statSync(path);
/**
* Deletes this [FileSystemEntity].
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/io_service.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698