[FIX] document_ftp: allow to use '..' command when traveling in ftp directories

lp bug: https://launchpad.net/bugs/734892 fixed

bzr revid: mat@openerp.com-20140121103021-mv9gcv4iprary0ac
This commit is contained in:
Martin Trigaux 2014-01-21 11:30:21 +01:00
parent 698e2de138
commit 6c0d8142ba
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ class abstracted_fs(object):
if path == '/' and mode in ('list', 'cwd'):
return (None, None, None )
if path == '..': path = self.cwd + '/..'
path = _to_unicode(os.path.normpath(path)) # again, for '/db/../ss'
if path == '.': path = ''