Question regarding mkdir of ftputil

S

s99999999s2003

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top