Question regarding mkdir of ftputil

s99999999s2003 at yahoo.com s99999999s2003 at yahoo.com
Mon Feb 13 05:01:47 EST 2006


hi
i am currently using the FTP wrapper from
http://cheeseshop.python.org/pypi/ftputil/2.0.3
The documentation states "In the current implementation, this doesn't
construct "intermediate" directories which don't already exist".
i would like to make directories at the remote server whenever the path
doesn't exist
eg
/rootdir/path1/<year>/<month> ....because <year> and <month> is
"changing"

Is there a way to do this using other FTP modules, or even ftplib?  or
the only way is to use "try, except" method?
thanks for any advice.




More information about the Python-list mailing list