IQgtddlZddlZddlmZddlmZmZmZejdZ d de dee fdZ dS) N)Optional)get_mount_point run_commandExternalProgramFailedzuser quota on .+ \(.+\) is on/homepathreturnctjdsdS t|}n##tt f$r}d|cYd}~Sd}~wwxYw dd|g}t |}n&#t $r}t|}Yd}~nd}~wwxYw|}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) osrisfilerOSErrorrrstrstripUSER_QUOTA_ON_PATTERNsearch)r mount_pointe quotaon_cmdquotaon_outputs p/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/clquota.pycheck_quota_enabledrs 7>>/ * */..;%d++ * +;;;:q::::::::; &{; $[11    Q $))++N ' ' 7 7 4s33AAAAA,, B6B  B)r) rer typingrclcommon.utilsrrrcompilerrrrrs NNNNNNNNNN" #CDDc r