##// END OF EJS Templates
store: encode trailing period and space on directory names (issue1417)...
Adrian Buehlmann -
r7515:ee5aba88 default
parent child Browse files
Show More
@@ -61,6 +61,9 b' def auxencode(path):'
61 61 # encode third letter ('aux' -> 'au~78')
62 62 ec = "~%02x" % ord(n[2])
63 63 n = n[0:2] + ec + n[3:]
64 if n[-1] in '. ':
65 # encode last period or space ('foo...' -> 'foo..~2e')
66 n = n[:-1] + "~%02x" % ord(n[-1])
64 67 res.append(n)
65 68 return '/'.join(res)
66 69
@@ -16,3 +16,4 b" show('data/enterprise/openesbaddons/cont"
16 16 show('data/AUX.THE-QUICK-BROWN-FOX-JU:MPS-OVER-THE-LAZY-DOG-THE-QUICK-BROWN-FOX-JUMPS-OVER-THE-LAZY-DOG.TXT.i')
17 17 show('data/Project Planning/Resources/AnotherLongDirectoryName/Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
18 18 show('data/Project.Planning/Resources/AnotherLongDirectoryName/Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
19 show('data/foo.../foo / /a./_. /__/.x../ bla/something.i')
@@ -16,3 +16,6 b" B = 'dh/project_/resource/anotherl/follo"
16 16 A = 'data/Project.Planning/Resources/AnotherLongDirectoryName/Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt'
17 17 B = 'dh/project_/resource/anotherl/followed/andanoth/andthenanextremelylongfilena0fd7c506f5c9d58204444fc67e9499006bd2d445.txt'
18 18
19 A = 'data/foo.../foo / /a./_. /__/.x../ bla/something.i'
20 B = 'data/foo..~2e/foo ~20/~20/a~2e/__.~20/____/.x.~2e/ bla/something.i'
21
General Comments 0
You need to be logged in to leave comments. Login now