Add some filesystem tests

This commit is contained in:
Thomas Farstrike
2025-04-18 23:43:31 +02:00
parent d741d14cbf
commit 74d2a7c5ca
+15
View File
@@ -192,3 +192,18 @@ else:
label.set_text("Block Height: Wi-Fi Error")
print(os.listdir('/'))
try:
with open('/boot.py', 'r') as file:
print("Contents of /boot.py:")
print("-" * 20)
for line in file:
print(line.rstrip()) # Remove trailing newlines for clean output
except OSError as e:
print("Error reading /boot.py:", e)
with open('/block_height.txt', 'w') as f:
f.write('853123')