ϪfdZddlZddlmZddlmZmZmZddlm Z ddl m Z m Z m Z Gdde jejZd Zy) z> I am the support module for making a ftp server with twistd. N)internet)checkersportalstrcred)ftp) deprecateusageversionsceZdZdZgdgdgdgZej dejdiZd Z d Z d Z y ) OptionszP[options]. WARNING: This FTP server is probably INSECURE do not use it. )portp2121zset the port number)rootrz/usr/local/ftpz define the root of the ftp-site.) userAnonymous anonymouszName of the anonymous user.rzroot of the ftp site)descr) optActionsrctjj|g|i||jt j y)N)r r __init__ addCheckerrAllowAnonymousAccess)selfakws 1/usr/lib/python3/dist-packages/twisted/tap/ftp.pyrzOptions.__init__"s3 t.a.2. 5578c ||d<tj|jtjdddd}t j |td|jtj|d y ) z Specify a file containing username:password login info for authenticated connections. (DEPRECATED; see --help-auth instead) z password-fileTwisted r)category stacklevelT)cacheN) rgetDeprecationWarningStringopt_password_filer VersionwarningswarnDeprecationWarningrrFilePasswordDB)rfilenamemsgs rr)zOptions.opt_password_file&sf !)_33  " "H$4$4YAq$I   c$61E //EFrN) __name__ __module__ __qualname__synopsis optParametersr Completions CompleteDirscompDatalongdescrr)rrr r sXH 5KIM !u  .E..5KLMHH9 Grr crtj}tj|d}tj||j dg}|d|_|d|_||_tj|_ t|d}tj||S#t$rd}Y#wxYw)Nr credCheckersrr iI)r FTPFactoryFTPRealmrPortalgettldrFTPprotocolintKeyErrorr TCPServer)configfrrportnos r makeServicerJ3s A VF^$A aNB78A 6NAE_-AOAHAJVF^$   fa (( sB(( B65B6)__doc__r+twisted.applicationr twisted.credrrrtwisted.protocolsrtwisted.pythonrr r r AuthOptionMixinrJr:rrrQsA (22!55GemmW44GB)r