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

This command is triggered when trying to go one level up in some FTP softwares (eg: FileZilla)

bzr revid: mat@openerp.com-20140121133045-9p2p67bo2jz8uo9z
This commit is contained in:
Martin Trigaux
2014-01-21 11:30:45 -02:00
@@ -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 = ''