Show More
@@ -514,6 +514,7 b' def checkwinfilename(path):' | |||||
514 | "filename contains '\\\\x07', which is invalid on Windows" |
|
514 | "filename contains '\\\\x07', which is invalid on Windows" | |
515 | >>> checkwinfilename("foo/bar/bla ") |
|
515 | >>> checkwinfilename("foo/bar/bla ") | |
516 | "filename ends with ' ', which is not allowed on Windows" |
|
516 | "filename ends with ' ', which is not allowed on Windows" | |
|
517 | >>> checkwinfilename("../bar") | |||
517 | ''' |
|
518 | ''' | |
518 | for n in path.replace('\\', '/').split('/'): |
|
519 | for n in path.replace('\\', '/').split('/'): | |
519 | if not n: |
|
520 | if not n: | |
@@ -530,7 +531,7 b' def checkwinfilename(path):' | |||||
530 | return _("filename contains '%s', which is reserved " |
|
531 | return _("filename contains '%s', which is reserved " | |
531 | "on Windows") % base |
|
532 | "on Windows") % base | |
532 | t = n[-1] |
|
533 | t = n[-1] | |
533 | if t in '. ': |
|
534 | if t in '. ' and n not in '..': | |
534 | return _("filename ends with '%s', which is not allowed " |
|
535 | return _("filename ends with '%s', which is not allowed " | |
535 | "on Windows") % t |
|
536 | "on Windows") % t | |
536 |
|
537 |
General Comments 0
You need to be logged in to leave comments.
Login now