The following code of FTPHost lets PyCharm think that FTPHost() is deprecated:
warnings.warn(
"`use_list_a_option` will default to `False` in ftputil 4.x.x",
DeprecationWarning, stacklevel=2)
I attached a screenshot of PyCharm.
Greetings from Chemnitz :-)
Hi Thomas! :-)
Thanks for the report.
To me, the behavior looks like a bug in PyCharm. The warning is triggered from the constructor of
FTPHost
, but this doesn't mean thatFTPHost
itself is deprecated.What is deprecated is to rely on "hidden" folders and files to be listed by default. (In ftputil 4.x, they won't be.) I haven't found a way to show them by default without unpleasant side effects, see ticket #110, which explains the problem in more detail.
Unless you have a good counter-argument, I'd close this ticket with resolution "invalid".
I'm closing the ticket as "invalid" since there weren't any further replies from the reporter.