thank you for this library.
to fit the pyhton os module it would be nice if makedirs could accept additional args.
Thank you for the report!
FTPHost.makedirsshould accept the
When looking at the code, I noticed that the current implementation doesn't accept an
exist_okargument, but behaves as if
exist_ok=Truewas given. However, according to the documentation at https://docs.python.org/3/library/os.html#os.makedirs ,
I plan to change the behavior in a future ftputil 4.0.0, so that
exist_okconforms to the Python documentation and the
exist_okargument is supported.
As I meanwhile noticed, the earlier behavior of
makedirsin ftputil wasn't a bug, but the actual semantics of
os.makedirsin Python 2. On the other hand, Python 3 not only adds the argument
exist_ok, but also chooses the default so that the default behavior is different from that in Python 2.
So this issue has to be listed under the backward-incompatible changes in the documentation and in the announcement.