enhanceFileMon

This commit is contained in:
SpudGunMan
2024-11-19 19:44:49 -08:00
parent 8e5773115c
commit 6b2a6f3a83
+4 -1
View File
@@ -25,5 +25,8 @@ async def watch_file():
# File has been modified
content = read_file(file_monitor_file_path)
last_modified_time = current_modified_time
return content
# Cleanup the content
content = content.replace('\n', ' ').replace('\r', '').strip()
if content:
return content
await asyncio.sleep(1) # Check every