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

Unified Diff: runtime/bin/file.h

Issue 12314153: dart:io | Rename File.name to File.path. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove stray line break. Created 7 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
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 53a1e448ca0aa030ab62770009e21868898ac41f..05be61c51da9924220fb419bca2a58ef9373043e 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -56,7 +56,7 @@ class File {
kSetPositionRequest = 8,
kTruncateRequest = 9,
kLengthRequest = 10,
- kLengthFromNameRequest = 11,
+ kLengthFromPathRequest = 11,
kLastModifiedRequest = 12,
kFlushRequest = 13,
kReadByteRequest = 14,
@@ -103,25 +103,25 @@ class File {
// Returns whether the file has been closed.
bool IsClosed();
- // Open the file with the given name. The file is always opened for
+ // Open the file with the given path. The file is always opened for
// reading. If mode contains kWrite the file is opened for both
// reading and writing. If mode contains kWrite and the file does
// not exist the file is created. The file is truncated to length 0 if
// mode contains kTruncate.
- static File* Open(const char* name, FileOpenMode mode);
+ static File* Open(const char* path, FileOpenMode mode);
// Create a file object for the specified stdio file descriptor
// (stdin, stout or stderr).
static File* OpenStdio(int fd);
- static bool Exists(const char* name);
- static bool Create(const char* name);
- static bool Delete(const char* name);
- static off_t LengthFromName(const char* name);
- static time_t LastModified(const char* name);
- static bool IsAbsolutePath(const char* pathname);
- static char* GetCanonicalPath(const char* name);
- static char* GetContainingDirectory(char* name);
+ static bool Exists(const char* path);
+ static bool Create(const char* path);
+ static bool Delete(const char* path);
+ static off_t LengthFromPath(const char* path);
+ static time_t LastModified(const char* path);
+ static bool IsAbsolutePath(const char* path);
+ static char* GetCanonicalPath(const char* path);
+ static char* GetContainingDirectory(char* path);
static const char* PathSeparator();
static const char* StringEscapedPathSeparator();
static StdioHandleType GetStdioHandleType(int fd);
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | runtime/bin/file_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698