<s> """<STR_LIT>""" <EOL> __author__ = """<STR_LIT>""" <EOL> DEBUG = True if __name__ == '<STR_LIT:__main__>' else False <EOL> if DEBUG : <EOL> from os import getcwd <EOL> from os import sys <EOL> sys . path . append ( getcwd ( ) ) <EOL> from MOAL . helpers . display import Section <EOL> from pyftpdlib . authorizers import DummyAuthorizer <EOL> from pyftpdlib . handlers import FTPHandler <EOL> from pyftpdlib . servers import FTPServer <EOL> import sys <EOL> ADMINS = False <EOL> SERVER_URI = '<STR_LIT:127.0.0.1>' <EOL> PERMS = '<STR_LIT>' if ADMINS else '<STR_LIT>' <EOL> if DEBUG : <EOL> with Section ( '<STR_LIT>' ) : <EOL> servdir = sys . argv [ <NUM_LIT:2> ] if '<STR_LIT>' in sys . argv else '<STR_LIT>' <EOL> authorizer = DummyAuthorizer ( ) <EOL> authorizer . add_user ( '<STR_LIT>' , '<STR_LIT>' , servdir , perm = PERMS ) <EOL> authorizer . add_anonymous ( servdir ) <EOL> handler = FTPHandler <EOL> handler . authorizer = authorizer <EOL> server = FTPServer ( ( SERVER_URI , <NUM_LIT> ) , handler ) <EOL> server . serve_forever ( ) </s>
