📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib64
›
python3.9
›
site-packages
›
systemd
›
📁 test
📍
Lokasi:
/usr/lib64/python3.9/site-packages/systemd/test
💾
Free:
45.4 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: test_login.py
from __future__ import print_function import select import contextlib import errno from systemd import login import pytest @contextlib.contextmanager def skip_oserror(code): try: yield except (OSError, IOError) as e: if e.errno == code: pytest.skip() raise def test_seats(): # just check that we get some sequence back with skip_oserror(errno.ENOENT): seats = login.seats() assert len(seats) >= 0 def test_sessions(): with skip_oserror(errno.ENOENT): sessions = login.sessions() assert len(sessions) >= 0 def test_machine_names(): with skip_oserror(errno.ENOENT): machine_names = login.machine_names() assert len(machine_names) >= 0 def test_uids(): with skip_oserror(errno.ENOENT): uids = login.uids() assert len(uids) >= 0 def test_monitor(): p = select.poll() with skip_oserror(errno.ENOENT): m = login.Monitor("machine") p.register(m, m.get_events()) login.machine_names() p.poll(1) login.machine_names()
💾 Simpan Perubahan
❌ Batal
📤 Upload
📁 Buat Folder
Nama
Ukuran
Dimodifikasi
Permission
Aksi
📁 __pycache__
-
2025-02-25 15:27
0755
✍️
🗑️
💻
test_daemon.py
10.1 KB
2024-10-02 19:57
0644
✏️ Edit
⬇
✍️
🗑️
💻
test_journal.py
9.8 KB
2017-03-26 01:33
0644
✏️ Edit
⬇
✍️
🗑️
💻
test_login.py
1.1 KB
2017-03-26 01:33
0644
✏️ Edit
⬇
✍️
🗑️
✍️ Rename:
Nama Baru:
Batal
💾 Simpan