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

Unified Diff: runtime/bin/file_win.cc

Issue 16140008: dart:io | Make FileStat.stat throw an exception when the file does not exist, or cannot be accessed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | tests/standalone/io/file_stat_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_win.cc
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
index d0f4c82c5bf4e2d20c294ed30024a68ead24062c..d149c081545f9f70fc315a06047fd90675db8a63 100644
--- a/runtime/bin/file_win.cc
+++ b/runtime/bin/file_win.cc
@@ -394,11 +394,6 @@ char* File::LinkTarget(const char* pathname) {
void File::Stat(const char* name, int64_t* data) {
File::Type type = GetType(name, false);
data[kType] = type;
- data[kCreatedTime] = 0;
- data[kModifiedTime] = 0;
- data[kAccessedTime] = 0;
- data[kMode] = 0;
- data[kSize] = 0;
if (type != kDoesNotExist) {
struct _stat64 st;
const wchar_t* system_name = StringUtils::Utf8ToWide(name);
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | tests/standalone/io/file_stat_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698