MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //opt/imunify360/venv/lib64/python3.11/site-packages/restore_infected/config.py
import os


class FromFlagFile:
    _flags_location = "/var/restore_infected"

    def __init__(self, flag_name):
        self.flag_file = os.path.join(self._flags_location, flag_name)

    def __get__(self, instance, owner):
        return os.path.isfile(self.flag_file)


class Flags:
    DisableFtpBackups = FromFlagFile("disable_ftp_backups")