Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(362)

Unified Diff: src/pkg/os/stat_windows.go

Issue 1145044: code review 1145044: implement os.FileInfo.*time_ns for windows (Closed)
Patch Set: code review 1145044: implement os.FileInfo.*time_ns for windows Created 14 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pkg/syscall/syscall_windows.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/os/stat_windows.go
===================================================================
old mode 100755
new mode 100644
--- a/src/pkg/os/stat_windows.go
+++ b/src/pkg/os/stat_windows.go
@@ -39,9 +39,8 @@
fi.Size = int64(sizehi)<<32 + int64(sizelo)
fi.Name = name
fi.FollowedSymlink = false
- // TODO(brainman): use ctime atime wtime to prime following FileInfo fields
- fi.Atime_ns = 0
- fi.Mtime_ns = 0
- fi.Ctime_ns = 0
+ fi.Atime_ns = atime.Microseconds() * 1000
+ fi.Mtime_ns = wtime.Microseconds() * 1000
+ fi.Ctime_ns = ctime.Microseconds() * 1000
return fi
}
« no previous file with comments | « no previous file | src/pkg/syscall/syscall_windows.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b