mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
Add debug logging to directory write test
This commit is contained in:
@@ -58,6 +58,11 @@ class StockManager:
|
||||
# Directory exists, check if writable by trying to create a temp file
|
||||
try:
|
||||
temp_file_path = os.path.join(self.logo_dir, "write_test_py.tmp")
|
||||
abs_path = os.path.abspath(temp_file_path)
|
||||
cwd = os.getcwd()
|
||||
euid = os.geteuid()
|
||||
egid = os.getegid()
|
||||
logger.debug(f"Write test: UID={euid}, GID={egid}, CWD='{cwd}', Path='{abs_path}'")
|
||||
with open(temp_file_path, 'w') as f:
|
||||
f.write('test')
|
||||
os.remove(temp_file_path)
|
||||
|
||||
Reference in New Issue
Block a user