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

Unified Diff: runtime/bin/file.h

Issue 15018011: dart:io | Add FileSystemEntity.stat() and FileStat class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Windows failures. Created 7 years, 7 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
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index cf9f68997a6e49c5d7f31b1791a13fab1c39c1b9..cfc48c150f892c018de2a2c996686222eb94eb77 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -85,7 +85,19 @@ class File {
kDeleteLinkRequest = 20,
kLinkTargetRequest = 21,
kTypeRequest = 22,
- kIdenticalRequest = 23
+ kIdenticalRequest = 23,
+ kStatRequest = 24
+ };
+
+ enum FileStat {
+ // These match the constants in FileStat in file_system_entity.dart.
+ kType = 0,
+ kCreatedTime = 1,
+ kModifiedTime = 2,
+ kAccessedTime = 3,
+ kMode = 4,
+ kSize = 5,
+ kStatSize = 6
};
~File();
@@ -142,6 +154,7 @@ class File {
static bool Delete(const char* path);
static bool DeleteLink(const char* path);
static off_t LengthFromPath(const char* path);
+ static void Stat(const char* path, int64_t* data);
static time_t LastModified(const char* path);
static char* LinkTarget(const char* pathname);
static bool IsAbsolutePath(const char* path);

Powered by Google App Engine
This is Rietveld 408576698