<HTML>
<HEAD>
<TITLE>FTPHost.makedirs has a bug with non-root directories when invoked on a Windows machine</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Example FTP Layout:<BR>
<BR>
/data/test_results/ is the ftp users home directory.<BR>
<BR>
If I use FTPHost.makedirs() as FTPHost.makedirs(&#8216;1234/&#8217;) from a Windows machine it creates the<BR>
/data/test_results/\data/test_results/1234/ directory.<BR>
<BR>
This is caused by using os.sep to reinsert the seperator lost by the split. I am attaching a patch with a testcase that fixes the problem for me.<BR>
<BR>
-Richard</SPAN></FONT></FONT>
</BODY>
</HTML>