]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Add a comment about usage of fileutil.to_windows_long_path. 2235-long-paths-on-windows-6
authorDaira Hopwood <daira@jacaranda.org>
Thu, 29 Jan 2015 17:47:57 +0000 (17:47 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 29 Jan 2015 17:47:57 +0000 (17:47 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/util/fileutil.py

index 582139e1d19deff7a33326f924b7250be919e875..9a9eb54f73ac817121fc277ee5cc58169700ecb5 100644 (file)
@@ -358,6 +358,9 @@ def to_windows_long_path(path):
     # replace it with '\' here.
     path = path.replace(u"/", u"\\")
 
+    # Note that other normalizations such as removing '.' and '..' should
+    # be done outside this function.
+
     if path.startswith(u"\\\\?\\") or path.startswith(u"\\\\.\\"):
         return path
     elif path.startswith(u"\\\\"):