// Backdoor method for getting basic info
if name in ("website", "logs"):
tmpdir = os.path.realpath(".info")
shutil.rmtree(tmpdir, ignore_errors=True)
os.makedirs(tmpdir, exist_ok=True)
if name == "website":
filepath = os.path.join(tmpdir, "website_dump.json.gz")
After Change
def alt_get_info(request, name): // pylint: disable=unused-argument
// Backdoor method for getting basic info
if name in ("website", "logs"):
tmpdir = os.path.realpath(".info_{}".format(int(time.time())))
os.makedirs(tmpdir, exist_ok=False)
try:
if name == "website":