https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/clquota.cpython-37.pyc
B

(
c|�@sxddlmZddlmZddlmZddlZddlZddlmZddlm	Z	m
Z
mZe�d�Z
deeed	�d
d�ZdS)
�)�absolute_import)�division)�print_functionN)�Optional)�get_mount_point�run_command�ExternalProgramFailedzuser quota on .+ \(.+\) is on�/home)�path�returnc
Cs�tj�d�sdSyt|�}Wn,ttfk
rH}z
d|��Sd}~XYnXydd|g}t|�}Wn*tk
r�}zt|�}Wdd}~XYnX|��}t	�
|�s�|SdS)z�
    Check if quotas enabled and initialised for specific path
    :return: string message with giagnostick information if disabled; None if enabled
    z
/sbin/quotaonzPackage "quota" not installedz$Error during mount point detection:
Nz-up)�osr
�isfiler�OSErrorrr�str�strip�USER_QUOTA_ON_PATTERN�search)r
Zmount_point�eZquotaon_cmdZquotaon_output�r�A/opt/alt/python37/lib/python3.7/site-packages/clcommon/clquota.py�check_quota_enableds

r)r	)Z
__future__rrr�rer�typingrZclcommon.utilsrrr�compilerrrrrrr�<module>	s


https://t.me/AnonymousX5 - 2025