Skip to content

Instantly share code, notes, and snippets.

@risc987
risc987 / ftpserver.py
Last active June 6, 2020 00:54 — forked from scturtle/ftpserver.py
Support python3, fix local ip bug, chroot bug.
#!/usr/bin/env python
#coding: utf-8
import os,socket,threading,time
#import traceback
import sys
#sys.setdefaultencoding('utf8')
#allow_delete = False
allow_delete = True