PHP 8.2.30
Preview: utils.py Size: 598 B
/proc/self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/clcagefslib/webisolation/crontab/utils.py

# -*- coding: utf-8 -*-
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2025 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENCE.TXT
#
"""Utility functions for crontab operations."""

import os

from .constants import DOCUMENT_ROOT_ENV


def get_document_root() -> str | None:
    """
    Get the document root from environment variable.

    Returns:
        Optional[str]: The document root path if PROXYEXEC_DOCUMENT_ROOT is set,
                       None otherwise.
    """
    return os.environ.get(DOCUMENT_ROOT_ENV)

Directory Contents

Dirs: 1 × Files: 7

Name Size Perms Modified Actions
- drwxr-xr-x 2026-03-25 07:00:52
Edit Download
864 B lrw-r--r-- 2026-03-02 11:08:26
Edit Download
6.60 KB lrw-r--r-- 2026-03-02 11:08:26
Edit Download
4.38 KB lrw-r--r-- 2026-03-02 11:08:26
Edit Download
6.50 KB lrw-r--r-- 2026-03-02 11:08:26
Edit Download
4.11 KB lrw-r--r-- 2026-03-02 11:08:26
Edit Download
598 B lrw-r--r-- 2026-03-02 11:08:26
Edit Download
549 B lrw-r--r-- 2026-03-02 11:08:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).