Refactored everything
This commit is contained in:
51
debug_status.py
Normal file
51
debug_status.py
Normal file
@@ -0,0 +1,51 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Paths
|
||||
Z_LOGS = Path(r"Z:\.vmaf_logs")
|
||||
C_LOGS = Path(r"C:\Users\bnair\Videos\encodes\logs")
|
||||
LOCAL_LOGS = Path("logs").resolve()
|
||||
Z_LOCKS = Path(r"Z:\.vmaf_locks")
|
||||
C_LOCKS = Path(r"C:\Users\bnair\Videos\encodes\locks")
|
||||
|
||||
print("--- DEBUG STATUS ---")
|
||||
|
||||
print(f"\n1. Checking Logs on Z: ({Z_LOGS})")
|
||||
if Z_LOGS.exists():
|
||||
print(" [OK] Folder exists.")
|
||||
for f in Z_LOGS.glob("*"):
|
||||
print(f" - {f.name} ({f.stat().st_size} bytes)")
|
||||
else:
|
||||
print(" [MISSING] Folder does not exist.")
|
||||
|
||||
print(f"\n2. Checking Logs on C: ({C_LOGS})")
|
||||
if C_LOGS.exists():
|
||||
print(" [OK] Folder exists.")
|
||||
for f in C_LOGS.glob("*"):
|
||||
print(f" - {f.name} ({f.stat().st_size} bytes)")
|
||||
else:
|
||||
print(" [MISSING] Folder does not exist.")
|
||||
|
||||
print(f"\n3. Checking Local Logs: ({LOCAL_LOGS})")
|
||||
if LOCAL_LOGS.exists():
|
||||
print(" [OK] Folder exists.")
|
||||
for f in LOCAL_LOGS.glob("*"):
|
||||
print(f" - {f.name} ({f.stat().st_size} bytes)")
|
||||
else:
|
||||
print(" [MISSING] Folder does not exist.")
|
||||
|
||||
print(f"\n4. Checking Locks")
|
||||
z_count = len(list(Z_LOCKS.glob("*"))) if Z_LOCKS.exists() else 0
|
||||
c_count = len(list(C_LOCKS.glob("*"))) if C_LOCKS.exists() else 0
|
||||
print(f" Z: Locks: {z_count}")
|
||||
print(f" C: Locks: {c_count}")
|
||||
|
||||
print(f"\n4. Checking Temp Encodes")
|
||||
temp = Path(r"C:\Users\bnair\Videos\encodes")
|
||||
if temp.exists():
|
||||
mkv_files = list(temp.glob("*.mkv"))
|
||||
print(f" Found {len(mkv_files)} mkv files.")
|
||||
for f in mkv_files:
|
||||
print(f" - {f.name} ({f.stat().st_size / 1024**3:.2f} GB)")
|
||||
else:
|
||||
print(" [MISSING] Temp folder missing.")
|
||||
Reference in New Issue
Block a user