ACIL FM
Dark
Refresh
Current DIR:
/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/cpapi
/
opt
imunify360
venv
lib
python3.11
site-packages
clcommon
cpapi
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
cache
-
chmod
Open
Rename
Delete
GeneralPanel
-
chmod
Open
Rename
Delete
plugins
-
chmod
Open
Rename
Delete
__pycache__
-
chmod
Open
Rename
Delete
apilink.py
267 B
chmod
View
DL
Edit
Rename
Delete
clcpapi.py
3.64 MB
chmod
View
DL
Edit
Rename
Delete
const.py
511 B
chmod
View
DL
Edit
Rename
Delete
cpapicustombin.py
2.12 MB
chmod
View
DL
Edit
Rename
Delete
cpapiexceptions.py
1.75 MB
chmod
View
DL
Edit
Rename
Delete
panel_hooks_lib.py
1.22 MB
chmod
View
DL
Edit
Rename
Delete
pluginlib.py
7.57 MB
chmod
View
DL
Edit
Rename
Delete
utils.py
1.03 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
14.54 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/imunify360/venv/lib/python3.11/site-packages/clcommon/cpapi/utils.py
import sys from functools import wraps from clcommon.const import Feature from clcommon.cpapi import is_panel_feature_supported from clcommon.lib.cledition import ( CLEditionDetectionError, ) __all__ = ( "skip_without_lve", "lve_supported_or_exit", ) _SKIP_MESSAGE = ( "Command is skipped as LVE feature is not supported in current environment\n" "Refer to https://docs.cloudlinux.com/solo/introduction/#cloudlinux-os-editions-comparison for more info" ) def skip_without_lve(): try: # we still have some utils that could be run # under user (e.g cloudlinux-selector) if not is_panel_feature_supported(Feature.LVE): print(_SKIP_MESSAGE) sys.exit(0) except CLEditionDetectionError as e: print(f"Error: {e}") sys.exit(1) def lve_supported_or_exit(f): @wraps(f) def inner(*args, **kwargs): if not is_panel_feature_supported(Feature.LVE): print(_SKIP_MESSAGE) else: return f(*args, **kwargs) return inner
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply