Skip to content

Instantly share code, notes, and snippets.

@iamtalhaasghar
Created August 9, 2024 18:35
Show Gist options
  • Save iamtalhaasghar/4eebd3cafd82297e862fcddb6c8f84a1 to your computer and use it in GitHub Desktop.
Save iamtalhaasghar/4eebd3cafd82297e862fcddb6c8f84a1 to your computer and use it in GitHub Desktop.
map directive not found while enabling sliding sync for synapse matrix server
import os
import time
import shutil
path = '/path/to/file'
dst = '/path/to/dst'
while True:
time.sleep(10/1000) # 10 milli seconds
if os.path.exists(path):
shutil.copy(path, dst)
@iamtalhaasghar
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment