Index: base/file_path.h |
=================================================================== |
--- base/file_path.h (revision 68690) |
+++ base/file_path.h (working copy) |
@@ -151,6 +151,12 @@ |
// The character used to identify a file extension. |
static const CharType kExtensionSeparator; |
+#if defined(OS_WIN) |
+ // Path length is limited to 260 on windows unless prefixed |
Mark Mentovai
2010/12/16 19:48:19
Windows, a proper name, requires a capital letter.
Kavita Kanetkar
2010/12/17 00:59:32
Done.
|
+ // with a special extended path prefix. |
+ static const CharType kExtendedPathPrefix[]; |
+#endif |
+ |
FilePath(); |
FilePath(const FilePath& that); |
explicit FilePath(const StringType& path); |
@@ -307,6 +313,11 @@ |
FilePath NormalizeWindowsPathSeparators() const; |
#endif |
+#if defined(OS_WIN) |
+ // On windows, returns whether or not path starts with extended path prefix. |
Mark Mentovai
2010/12/16 19:48:19
path. Which path? The path?
extended path prefix.
Kavita Kanetkar
2010/12/17 00:59:32
Done.
|
+ bool StartsWithExtendedPathPrefix() const; |
Mark Mentovai
2010/12/16 19:48:19
A new function requires a unit test, even if it’s
Kavita Kanetkar
2010/12/17 00:59:32
Done.
|
+#endif |
+ |
// Compare two strings in the same way the file system does. |
// Note that these always ignore case, even on file systems that are case- |
// sensitive. If case-sensitive comparison is ever needed, add corresponding |