我有一个使用 pyftpdlib 的 ftp 服务器。我将如何隐藏运行服务器的 python 文件之类的文件?
这是我的代码:
import os
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
def main():
authorizer = DummyAuthorizer()
authorizer.add_user('user', '12345', os.getcwd(), perm='elradfmwM')
handler = FTPHandler
handler.authorizer = authorizer
handler.banner = "ftp works."
address = ('0.0.0.0', 2121)
server = FTPServer(address, handler)
server.max_cons = 256
server.max_cons_per_ip = 5
server.serve_forever()
if __name__ == '__main__':
main()