[FIX] document_ftp : when connecting using FTP client FileZilla and clicking on database named directory after logged in, it gives Invalid database path error

bzr revid: mma@tinyerp.com-20121031122304-6ss91ml1ncnmah1f
This commit is contained in:
Mayur Maheshwari (OpenERP)
2012-10-31 17:53:04 +05:30
parent 848cb19302
commit 15035d86bb
@@ -272,7 +272,7 @@ class abstracted_fs(object):
if path.startswith('/'):
path = path[1:]
p_parts = path.split('/') # hard-code the unix sep here, by spec.
p_parts = path.split(os.sep) # hard-code the unix sep here, by spec.
assert '..' not in p_parts