id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
26	error when openening mvs file for writing	ftputiluser	schwa	"When trying to open a file on a mvs-host for writing with the following commands

{{{
>>> from ftputil import *
>>> datei = FTPHost(""hostname"", ""username"", ""password"").open(""versuch"", ""w"")

I get the following traceback:

Traceback (most recent call last):
  File ""<pyshell#1>"", line 1, in <module>
    datei = FTPHost(""hostname"", ""username"", ""password"").open(""versuch"", ""w"")
  File ""C:\Program Files\Python25\lib\site-packages\ftputil\ftputil.py"", line 230, in open
    return self.file(path, mode)
  File ""C:\Program Files\Python25\lib\site-packages\ftputil\ftputil.py"", line 225, in file
    self.stat_cache.invalidate(effective_path)
  File ""C:\Program Files\Python25\Lib\site-packages\ftputil\ftp_stat_cache.py"", line 128, in invalidate
    assert path.startswith(""/""), ""%s must be an absolute path"" % path
AssertionError: 'username.'/versuch must be an absolute path
}}}

There is no problem to open a (existing) file with the above commandline for reading. The problem seems to be the naming convention on mvs systems where no root directory called / exists. There ist an  ugly workaround for this problem:

{{{
datei = FTPHost(""hostname"", ""username"", ""password"").open(""/'username.versuch'"", ""w"")
}}}

forces the / to be the first character of the filename which is required by ftp_stat_cache.py."	defect	closed	minor	never	Library	2.2.3	wontfix	mvs, root directory, absolute path, stat cache	
