Index: base/file_path.h |
=================================================================== |
--- base/file_path.h (revision 69859) |
+++ base/file_path.h (working copy) |
@@ -151,6 +151,16 @@ |
// 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 |
+ // with a special extended path prefix. UNC needs a separate |
+ // prefix containing "UNC" in it. |
+ static const CharType kExtendedPathPrefix[]; |
+ static const CharType kUNCExtendedPathPrefix[]; |
+ // '\\' Prefix for network shares. |
+ static const CharType kSharePrefix[]; |
+#endif |
+ |
FilePath(); |
FilePath(const FilePath& that); |
explicit FilePath(const StringType& path); |
@@ -307,6 +317,15 @@ |
FilePath NormalizeWindowsPathSeparators() const; |
#endif |
+#if defined(OS_WIN) |
+ // This is an interim solution to support long paths on Windows. |
+ StringType ToLongFileNameHack(const StringType& path) const; |
kinuko
2010/12/22 23:20:49
If it's not called anywhere outside the class, can
Kavita Kanetkar
2010/12/23 03:14:28
Done.
|
+ |
+ // Gets the long form if it is in 8.3 file name format. Note that this |
+ // is not supported for WinCE. |
+ FilePath GetLongPathHack() const; |
kinuko
2010/12/22 23:20:49
Can you put a comment that:
- this also prepends t
Kavita Kanetkar
2010/12/23 03:14:28
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 |